Skip to content

Add a Claude code review to pull requests - #14

Merged
GabrielCR99 merged 1 commit into
developmentfrom
ci/claude-review
Nov 24, 2026
Merged

GabrielCR99 merged 1 commit into
developmentfrom
ci/claude-review

Conversation

@GabrielCR99

Copy link
Copy Markdown
Owner

✨ Claude reviews every pull request

A new workflow, claude-review.yml, runs anthropics/claude-code-action on every pull request that isn't a draft, like Copilot code review. Claude leaves inline comments on the changed lines and posts one short summary comment.

The prompt is written for this repo. In order of priority it checks:

  • bugs
  • Swift concurrency and main-actor isolation, including callbacks from IOBluetooth and CoreBluetooth queues
  • the one-way Views → ViewModels → services layering
  • test coverage
  • pt-BR entries for new strings
  • security

It skips style that SwiftLint already enforces, and doesn't repeat its earlier comments when new commits are pushed.

🔒 Permissions

  • The action is pinned to the v1.0.289 commit SHA, like the other actions, so Dependabot keeps it updated.
  • The job can read the contents and write pull request comments. It also has id-token: write, which exchanges the workflow's identity for the Claude GitHub App's token, so comments come from claude[bot].
  • Claude can only read files, view the PR diff and comment. It can't run code or push.
  • Pull requests from forks (skipped by the action by default) and from Dependabot are skipped, since they don't get the secret.

⚙️ Setup before merging

  1. Install the Claude GitHub App on this repository.
  2. Add the repository secret CLAUDE_CODE_OAUTH_TOKEN (create it with claude setup-token).

The action only runs once this workflow exists on main, the default branch: until then, and on PRs that change it, it skips with a warning. So this PR won't be reviewed itself. Reviews start once it's released to main.

Docs

Both READMEs describe the workflow in the CI/CD section.

🤖 Generated with Claude Code

claude-review.yml runs anthropics/claude-code-action (pinned to v1.0.289)
on every pull request that isn't a draft. Claude leaves inline comments
on the changed lines and one summary comment. The prompt covers bugs,
Swift concurrency, the MVVM-C layering, tests, pt-BR strings and
security. It can only read the code, view the diff and comment. Pull
requests from forks and Dependabot are skipped.

Needs the Claude GitHub App on the repository and the
CLAUDE_CODE_OAUTH_TOKEN secret. Both READMEs document it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@GabrielCR99 GabrielCR99 self-assigned this Nov 24, 2026
@GabrielCR99 GabrielCR99 added the enhancement New feature or request label Nov 24, 2026
@GabrielCR99
GabrielCR99 merged commit 0a16dcb into development Nov 24, 2026
6 of 8 checks passed
@GabrielCR99
GabrielCR99 deleted the ci/claude-review branch November 24, 2026 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant