Repository navigation
Conversation
obenland
force-pushed
the
fix/queue-props-bot-runs
branch
from
October 23, 2026 20:38
e909239 to
e6d1f3e
Compare
GitHub notifies whoever triggered a run when it is cancelled, so a busy discussion on a pull request sent its commenters a notification for each comment that arrived while Props Bot was still running. Runs for the same pull request now wait their turn, which still writes the list in order. Fixes WordPress#50. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
GitHub submits every inline comment and thread reply as part of a review, so `pull_request_review` already runs for all of them. Submitting a review with several inline comments also started one run per comment, all at once, which then cancelled or queued behind each other for no new information. See WordPress#50. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
obenland
force-pushed
the
fix/queue-props-bot-runs
branch
from
October 23, 2026 20:38
e6d1f3e to
4907355
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #50.
Builds on #201, which adds
.github/workflows/props-bot.ymlas a copy of the example that linting keeps in sync. This changes both.GitHub notifies whoever triggered a workflow run when it gets cancelled. The example cancelled an unfinished run whenever a new one started for the same pull request, so in a busy discussion every comment that came in while Props Bot was still running sent its author a "Run cancelled" notification. #291 already moved concurrency onto the job, so runs that skip it, like a label other than
props-bot, no longer cancel anything. Two causes remained:pull_request_reviewevent and fivepull_request_review_commentevents at once, so every run but the last was cancelled.Recent wordpress-develop runs show both. Of 9 cancelled runs, 4 came from reviews and 5 from review comments.
Changes
queue: maxoption, since with the defaultqueue: singleGitHub would still cancel a pending run once a newer one arrived. Runs for a pull request still go one at a time and in order, so an older run can't overwrite a newer list. Gutenberg made the same switch in Props Bot: Queue runs instead of cancelling superseded ones gutenberg#84176.pull_request_review_commenttrigger. GitHub submits every inline comment and thread reply as part of a review, sopull_request_reviewalready runs for each of them. For example, a thread reply on Format Library: Split "Highlight" into "Text color" and "Highlight color" gutenberg#85296 became its ownCOMMENTEDreview and started apull_request_reviewrun three seconds later. The extra trigger only added one redundant run per comment. Gutenberg dropped it too.Note: actionlint 1.7.12 doesn't know
queueyet and reports it as an unknown key. GitHub accepts it.Testing
🤖 Generated with Claude Code