fix(ci): scope Scenario B review to cursor[bot] PRs only#33
Conversation
The issue_comment branch of the review trigger matched ANY PR that got a coderabbitai/copilot comment — it never checked the PR author. Combined with the just-merged `allowed_bots: "*"`, a CodeRabbit comment on a human-authored PR (e.g. infra PR #32) would now spin up the review agent to "address bot feedback" on a PR that isn't part of the agent flow. Add `github.event.issue.user.login == 'cursor[bot]'` so Scenario B only fires on agent-generated PRs, matching the pull_request_review branch which already scopes to cursor[bot] authors.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe PR refines GitHub Actions workflow automation by adding an explicit check that the referenced issue author is ChangesWorkflow Trigger Gate
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Agent PR ReviewScenario: B — Bot feedback (coderabbitai) What's right
Concerns
Fixes applied
Declined
Deferred
Final noteThis run is the self-described misfire the PR itself fixes — the steward triggered on a human PR because the |
Why
Follow-up to #32. With
allowed_bots: "*"now in place, theissue_commenttrigger branch would fire on any PR that receives a CodeRabbit/Copilot comment — it never checked who authored the PR. That means a bot comment on a human-authored PR (like the infra PRs #32 / this one) would spin up the review agent to "address bot feedback" on a PR that isn't part of the agent flow.Confirmed live: run
26716176970triggered Scenario B on PR #32 (authored bylcandy2) off CodeRabbit's comment — it only failed because of the (now-removed) bot guard.Fix
Add
github.event.issue.user.login == 'cursor[bot]'to theissue_commentcondition, matching thepull_request_reviewbranch which already scopes tocursor[bot]authors. Now Scenario B only runs on agent-generated PRs.Note
This PR is itself a human-authored infra PR — after merge, CodeRabbit comments on it will correctly be ignored by the review workflow.
Made with Cursor
Need help on this PR? Tag
@codesmithwith what you need. Autofix is disabled.Summary by CodeRabbit