INFRA-001: Restrict AI reviews to release/* → main PRs#31
Conversation
- .coderabbit.yaml: auto_review disabled globally; re-enabled by 'release' label - cubic.yaml: ignore.base_branches + ignore.head_branches block every PR that is not release/* → main - .github/workflows/label-release-prs.yml: auto-applies 'release' label when a PR has head=release/* and base=main - Created the 'release' GitHub label out-of-band so the workflow can apply it Net effect: feature/* → develop PRs no longer trigger CodeRabbit or Cubic. Only release PRs into main get reviewed. Manual @coderabbitai review still works.
📝 WalkthroughWalkthroughДобавлены три связанные конфигурационные файла для управления автоматизированным ревью релизных PR. GitHub Actions автоматически помечает PR, исходящие из веток ChangesRelease PR Review Automation
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 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 current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.github/workflows/label-release-prs.yml:
- Line 16: The workflow pins the action using the floating tag
"actions/github-script@v7", which is vulnerable to supply-chain tampering;
replace that reference with the action's immutable commit SHA (use the exact
full 40-char git commit SHA from the actions/github-script repo for the v7
release), i.e., update the uses entry that currently reads
"actions/github-script@v7" to "actions/github-script@<commit-sha>" so the
workflow always runs the known-good commit.
🪄 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: Organization UI
Review profile: ASSERTIVE
Plan: Pro
Run ID: 7e1ad22f-3edd-4845-a621-9bd8722c90c0
📒 Files selected for processing (3)
.coderabbit.yaml.github/workflows/label-release-prs.ymlcubic.yaml
Replace floating @v7 tag with the immutable commit SHA f28e40c7f34bde8b3046d885e986cb6290c5673b (v7.0.1) to prevent supply-chain tampering via tag moves. The version comment keeps the tag readable for future upgrades.
Summary
Configure CodeRabbit and Cubic.dev so only release/* → main PRs are reviewed; feature/* → develop traffic is skipped.
Mechanism
Files
Verification
Summary by cubic
INFRA-001: Restrict automated reviews to release/* → main PRs. Feature/* → develop PRs are skipped; manual
@coderabbitai reviewremains available..coderabbit.yaml: disable auto-review globally; re-enable whenreleaselabel is present..github/workflows/label-release-prs.yml: auto-appliesreleaselabel torelease/*→mainPRs; pinactions/github-scriptto commit SHA.cubic.yaml: ignore rules skip all non–release/*→maintraffic.Written for commit aca9677. Summary will update on new commits.
Review in cubic
Summary by CodeRabbit
Release Notes