Skip to content

Commit 5fee504

Browse files
committed
chore: add post merge validation bot
1 parent dcb253b commit 5fee504

1 file changed

Lines changed: 11 additions & 9 deletions

File tree

.github/workflows/post-merge-validation.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -63,25 +63,27 @@ jobs:
6363
6464
const body = `Hi @${author},
6565
66-
This PR has been merged to the main branch. Please ensure the following validation steps are completed.
67-
Please use power user persona where performance might be a challenge.
66+
on the day following \`feat\` or \`perf\` PR merge, PM and author to test changes on main (feature + exploratory around the edges) using the latest [nightly build](https://consensys.slack.com/archives/C093JQSEPJL) with [casual user persona](https://consensyssoftware.atlassian.net/wiki/spaces/TL1/pages/400085221547/Mobile+User+Persona+Definition) and also a [power user persona](https://consensyssoftware.atlassian.net/wiki/spaces/TL1/pages/400085221547/Mobile+User+Persona+Definition) where performance might be a challenge. Please record the testing in a video, check the relevant post-merge checklist box below, and post the video in a comment at the bottom of this PR.
6867
69-
## Validation Checklist
70-
- [ ] Author validated the changes in main branch using the nightly build
71-
- [ ] PM of the team validated the changes in main branch using the nightly build
72-
- [ ] Video URL shared:
68+
### Author validation checklist
69+
- [ ] Validated the changes in main branch using the nightly build
70+
- [ ] Video shared
71+
72+
### PM validation checklist
73+
- [ ] Validated the changes in main branch using the nightly build
74+
- [ ] Video shared
7375
7476
<!-- AUTO-VALIDATION-CHECKLIST PR:${pull_number} -->`;
7577
7678
// Post the comment
7779
try {
78-
await github.rest.issues.createComment({
80+
await github.rest.issues.createComment({
7981
owner,
8082
repo,
8183
issue_number: pull_number,
8284
body
83-
});
84-
console.log(`✅ Validation checklist posted on PR #${pull_number}`);
85+
});
86+
console.log(`✅ Validation checklist posted on PR #${pull_number}`);
8587
} catch (error) {
8688
console.log(`⚠️ Could not post comment: ${error.message}`);
8789
}

0 commit comments

Comments
 (0)