Skip to content

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

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#53
don-petry merged 1 commit intomainfrom
chore/claude-issue-trigger-standard

Conversation

@don-petry
Copy link
Copy Markdown
Contributor

Summary

  • Add issues: [labeled] event trigger to the Claude Code workflow
  • Add label_trigger: "claude" input so Claude can work issues autonomously (read issue, create branch, implement fix, open PR)
  • Upgrade contents permission from read to write (required for issue-triggered branch creation)
  • Pin claude-code-action to v1.0.89 (6e2bd52842c65e914eba5c8badd17560bd26b5de)

Matches the org CI standard defined in petry-projects/.github#24. Same change as petry-projects/broodly#69.

Test plan

  • CI passes (the claude check will fail as expected since the workflow file differs from main)
  • Verify the claude label exists on the repo
  • After merge, label an open issue with claude and confirm a workflow run triggers

🤖 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.

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 25 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 25 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: 7f8c9611-0246-455a-a0dc-44d73b30dd2b

📥 Commits

Reviewing files that changed from the base of the PR and between 0f7f1d9 and a69e643.

📒 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

Copy link
Copy Markdown

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

Updates the repository’s Claude Code GitHub Actions workflow to match the org CI standard by enabling issue-label triggering and the permissions needed for issue-driven automation.

Changes:

  • Add issues: [labeled] trigger and gate execution on the claude label.
  • Add label_trigger: "claude" input for the Claude action to run autonomously on labeled issues.
  • Increase contents permission to write and pin anthropics/claude-code-action to v1.0.89 (commit SHA).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

contents: write is granted for all workflow triggers (pull_request / issue_comment / review_comment / issues). Since write access is only needed for issue-triggered branch creation, consider splitting into a separate job for issues:labeled with contents: write, keeping contents: read for the comment/PR-triggered job(s) to preserve least-privilege and reduce blast radius if the action is compromised.

Copilot uses AI. Check for mistakes.
@don-petry don-petry enabled auto-merge (squash) April 5, 2026 21:26
@don-petry don-petry merged commit 15e4ad8 into main Apr 5, 2026
16 of 18 checks passed
@don-petry don-petry deleted the chore/claude-issue-trigger-standard branch April 5, 2026 21:28
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