chore: enable Claude issue trigger per org CI standard#119
Conversation
Add issues:[labeled] event trigger and claude label support so Claude can work issues autonomously — reading the issue, creating a branch, implementing the fix, and opening a PR. Changes: - Add issues:[labeled] trigger to on: block - Add issue label condition to job if: guard - Upgrade contents permission to write (needed for branch creation) - Pin claude-code-action to v1.0.89 (6e2bd528) - Add label_trigger: "claude" input - Add dependabot skip condition on step - Add permission comment for contents: write Matches the standard defined in petry-projects/.github#24. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 1 minutes and 54 seconds. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
There was a problem hiding this comment.
Pull request overview
Enables the “Claude Code” GitHub Actions workflow to be triggered by applying a claude label to issues, aligning this repo’s workflow configuration with the org CI standard referenced in petry-projects/.github#24.
Changes:
- Adds an
issues: [labeled]trigger and gates execution on theclaudelabel. - Updates job permissions (notably
contents: write) to support issue-triggered branch creation. - Pins
anthropics/claude-code-actiontov1.0.89and adds thelabel_trigger: "claude"input.
| permissions: | ||
| contents: read | ||
| # write required for issue-triggered branch creation | ||
| contents: write | ||
| id-token: write | ||
| pull-requests: write | ||
| issues: write |
There was a problem hiding this comment.
Job-level contents: write applies to all triggers (including pull_request and comment-based runs), expanding the GITHUB_TOKEN’s write surface beyond what’s needed for those paths. To minimize repo-write exposure, split this into two jobs with different permissions (e.g., keep contents: read for PR/comment triggers and use a separate issues-only job with contents: write), or otherwise scope elevated permissions only to the issue-labeled execution path.



Summary
issues: [labeled]event trigger toclaude.ymlso applying theclaudelabel to any issue triggers Claude to work it autonomouslycontentspermission fromreadtowrite(required for issue-triggered branch creation)claude-code-actiontov1.0.89(6e2bd528) matching the org standardlabel_trigger: "claude"input to the actionclaudelabel (#7c3aed) on this repositoryImplements the standard defined in petry-projects/.github#24.
Test plan
claudelabel to a test issue and confirm Claude picks it up🤖 Generated with Claude Code