Skip to content

Add Claude auto-review GitHub Action#448

Merged
pat-trunk-io merged 1 commit intomainfrom
agraebe/claude-pr-reviews
Mar 6, 2026
Merged

Add Claude auto-review GitHub Action#448
pat-trunk-io merged 1 commit intomainfrom
agraebe/claude-pr-reviews

Conversation

@agraebe
Copy link
Collaborator

@agraebe agraebe commented Mar 6, 2026

Introduce a new GitHub Actions workflow that runs an automated code review using anthropics/claude-code-action on pull requests. The job triggers on PR events, constrains concurrency, and skips branches prefixed with "trunk-merge/". Claude is prompted to check typos, grammar, formatting, and documentation, returns a JSON review_passed flag, and is allowed to create inline comments. If review_passed is true the workflow posts a "/trunk merge" comment and auto-approves the PR using the gh CLI. The action requires ANTHROPIC_API_KEY and sets minimal permissions for PR operations.

Introduce a new GitHub Actions workflow that runs an automated code review using anthropics/claude-code-action on pull requests. The job triggers on PR events, constrains concurrency, and skips branches prefixed with "trunk-merge/". Claude is prompted to check typos, grammar, formatting, and documentation, returns a JSON review_passed flag, and is allowed to create inline comments. If review_passed is true the workflow posts a "/trunk merge" comment and auto-approves the PR using the gh CLI. The action requires ANTHROPIC_API_KEY and sets minimal permissions for PR operations.
@pat-trunk-io pat-trunk-io merged commit 02c7816 into main Mar 6, 2026
1 of 6 checks passed
@pat-trunk-io pat-trunk-io deleted the agraebe/claude-pr-reviews branch March 6, 2026 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants