Skip to content

chore: enable Claude issue trigger per org CI standard#119

Merged
don-petry merged 1 commit intomainfrom
chore/claude-issue-trigger-standard
Apr 5, 2026
Merged

chore: enable Claude issue trigger per org CI standard#119
don-petry merged 1 commit intomainfrom
chore/claude-issue-trigger-standard

Conversation

@don-petry
Copy link
Copy Markdown
Collaborator

Summary

  • Adds issues: [labeled] event trigger to claude.yml so applying the claude label to any issue triggers Claude to work it autonomously
  • Upgrades contents permission from read to write (required for issue-triggered branch creation)
  • Pins claude-code-action to v1.0.89 (6e2bd528) matching the org standard
  • Adds label_trigger: "claude" input to the action
  • Adds dependabot skip condition
  • Created the claude label (#7c3aed) on this repository

Implements the standard defined in petry-projects/.github#24.

Test plan

  • Verify CI passes on this PR
  • After merge, apply claude label to a test issue and confirm Claude picks it up

🤖 Generated with Claude Code

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>
Copilot AI review requested due to automatic review settings April 5, 2026 21:23
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 5, 2026

Warning

Rate limit exceeded

@don-petry has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 1 minutes and 54 seconds before requesting another review.

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 @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: be5d354f-f663-433e-8ef5-2661b0d27d9a

📥 Commits

Reviewing files that changed from the base of the PR and between 3b841e1 and 8cc87bd.

📒 Files selected for processing (1)
  • .github/workflows/claude.yml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/claude-issue-trigger-standard

Comment @coderabbitai help to get the list of available commands and usage tips.

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Apr 5, 2026

@don-petry don-petry merged commit 5d1c4f9 into main Apr 5, 2026
15 of 17 checks passed
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 the claude label.
  • Updates job permissions (notably contents: write) to support issue-triggered branch creation.
  • Pins anthropics/claude-code-action to v1.0.89 and adds the label_trigger: "claude" input.

Comment on lines 31 to 36
permissions:
contents: read
# write required for issue-triggered branch creation
contents: write
id-token: write
pull-requests: write
issues: write
Copy link

Copilot AI Apr 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copilot uses AI. Check for mistakes.
@don-petry don-petry deleted the chore/claude-issue-trigger-standard branch April 5, 2026 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants