Skip to content

chore: add pull_request_review trigger to Bonk workflow#28436

Open
irvinebroque wants to merge 1 commit intoproductionfrom
brendan/bonk-review-trigger
Open

chore: add pull_request_review trigger to Bonk workflow#28436
irvinebroque wants to merge 1 commit intoproductionfrom
brendan/bonk-review-trigger

Conversation

@irvinebroque
Copy link
Contributor

@irvinebroque irvinebroque commented Feb 19, 2026

Summary

Adds pull_request_review (type: submitted) as a workflow trigger for the Bonk workflow.

Why this is needed

Real examples of /bonk not triggering:

#28432 (review)
#28434 (review)

The workflow already triggers on pull_request_review_comment, but that is a different GitHub event. GitHub has three distinct comment-related events on PRs:

Event What triggers it Example
issue_comment Comment in the conversation tab Typing in the main comment box and hitting "Comment"
pull_request_review_comment Inline comment on a specific line of the diff Clicking the + on a diff line and commenting
pull_request_review The top-level review body submitted via "Review changes > Submit review" Writing a message in the review dialog and hitting "Submit review" with Comment/Approve/Request changes

The workflow already had the first two, but not the third. When someone writes /bonk in the review body and hits "Submit review", GitHub fires a pull_request_review event — not pull_request_review_comment or issue_comment. Without this trigger, that /bonk is silently ignored.

This is exactly what happened here — a /bonk submitted as a PR review at 2026-02-19T00:53:35Z never triggered the workflow because the event type wasn't in the trigger list.

What this changes

Two lines added to .github/workflows/bonk.yml:

pull_request_review:
  types: [submitted]

No other changes needed — the ask-bonk action already handles this event type (reads $REVIEW_BODY and skips the reaction since the GitHub REST API doesn't support reactions on review submissions).

Note: Because the REST API doesn't support reactions on PR reviews, there won't be a 👍 ack on the review itself when Bonk picks it up. The work will still proceed normally.

Reviews submitted via 'Submit review' fire pull_request_review events,
not pull_request_review_comment or issue_comment. The Bonk action
already handles this event type — this just wires it up as a trigger.
@github-actions
Copy link
Contributor

This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:

Pattern Owners
/.github/ @cloudflare/content-engineering, @kodster28

@irvinebroque irvinebroque marked this pull request as ready for review February 19, 2026 01:40
@github-actions
Copy link
Contributor

@elithrar elithrar enabled auto-merge (squash) February 19, 2026 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments