fix: treat cancelled CI runs as non-failing#128
Conversation
…e-stop Cancelled workflow runs (e.g. from superseded dependabot merges) were counted as failures, blocking the Stop event on branches with clean CI. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
📝 WalkthroughWalkthroughThis PR updates the Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@CHANGELOG.md`:
- Around line 5-7: The changelog entry under "### Fixes" for the policy text
"Treat cancelled CI runs as non-failing in `require-ci-green-before-stop`
policy" is missing the PR number; update that single-line entry in CHANGELOG.md
by appending the PR identifier in the same format as other entries (e.g. add "
(`#123`)" replacing 123 with this PR's number) so it matches the repo convention
used for other entries like "(`#126`)" and "(`#112`)".
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: ba91cc2b-f346-458f-b1c9-2cd46c5cf19f
📒 Files selected for processing (4)
CHANGELOG.md__tests__/hooks/builtin-policies.test.tsdocs/built-in-policies.mdxsrc/hooks/builtin-policies.ts
CodeRabbit's login is "coderabbitai" (no [bot] suffix), so the review-policies convention hook missed it. Now checks __typename === "Bot" from the GraphQL API, which reliably identifies all bot accounts. Also adds missing PR number to CHANGELOG entry per repo convention. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Replaced by new PR from rebased branch (includes latest main). |
Summary
require-ci-green-before-stop, blocking the Stop event on branches with otherwise clean CIcancelledto the list of non-failing conclusions alongsidesuccessandskippedreview-policies.mjsconvention hook: uses GraphQL__typename === "Bot"instead of checking for[bot]in login (CodeRabbit's login iscoderabbitai, no suffix)Test plan
allowfor cancelled runs🤖 Generated with Claude Code