Skip to content

Latest commit

 

History

History
36 lines (31 loc) · 1.19 KB

README.md

File metadata and controls

36 lines (31 loc) · 1.19 KB

continuous-actions shared

Claude review

.github/workflows/claude-review.yml — reusable workflow that has Claude review a PR.

To enable in a repo, add .github/workflows/claude-review.yml:

name: Claude CI
on:
  pull_request:
    types: [opened, ready_for_review, synchronize, review_requested]
concurrency:
  group: claude-review-${{ github.event.pull_request.number }}
  cancel-in-progress: true
jobs:
  review:
    name: claude-review
    if: >-
      github.event.pull_request.head.repo.full_name == github.repository &&
      (github.event.action != 'review_requested' ||
       github.event.requested_team.slug == 'claude-review')
    uses: continuous-actions/shared/.github/workflows/claude-review.yml@<full-commit-sha>
    secrets:
      CLAUDE_CODE_OAUTH_TOKEN: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
    permissions:
      actions: read
      contents: read
      pull-requests: write
      issues: write
      id-token: write

Pin <full-commit-sha> to the latest commit of this repo, and give the claude-review team read access to the repo so it appears in the Reviewers list. Requires the org secret CLAUDE_CODE_OAUTH_TOKEN and the Claude GitHub App installed on the repo.