Skip to content

Remove wasm-bindgen-bot's merge-ready label while a review runs - #79

Merged
guybedford merged 1 commit into
masterfrom
gbedford/bot-start
Oct 24, 2026
Merged

guybedford merged 1 commit into
masterfrom
gbedford/bot-start

Conversation

@guybedford

Copy link
Copy Markdown
Contributor

wasm-bindgen-bot's merge-ready label stayed on a PR from its last review until the review of a new push finished, so it gave no sign that a review was running, and an approval of the new head in that window would enable auto-merge on an unreviewed commit.

This adds a start job, run alongside analyze with the same decision on whether the event is reviewed, that removes merge-ready as a review starts. The removal turns auto-merge off, and post adds the label back when the review finds no concerns.

@wasm-bindgen-bot wasm-bindgen-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ This PR adds a start job to bot.yml that runs alongside analyze and removes merge-ready as soon as a review starts. That way an approval landing on a newly pushed head can't turn on auto-merge before the bot has reviewed that head. Whether to remove the label is decided by the shared context.mjs, not the workflow if, so start makes the same review/skip choice as analyze, including skipping pushes from third parties. Because the app removes the label, the resulting unlabeled event still turns off auto-merge through the existing -merge-ready path, and post checks the head SHA before it adds the label back. Looks good to merge. One small gap: the job's if doesn't fire for the legacy bot-request-review label, for bot-review on drafts, or for reviews started from a comment or from the Actions tab. None of those involve a new unreviewed commit, so the label just doesn't show that a review is running in those cases.

@wasm-bindgen-bot wasm-bindgen-bot Bot added the merge-ready The bot's review of its own PR found no concerns; ready for a human approval label Oct 24, 2026
@guybedford
guybedford merged commit e0ed625 into master Oct 24, 2026
9 checks passed
@guybedford
guybedford deleted the gbedford/bot-start branch October 24, 2026 02:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-ready The bot's review of its own PR found no concerns; ready for a human approval

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant