Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 2 additions & 20 deletions .github/workflows/claude-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,6 @@ on:
types: [opened, ready_for_review]
issue_comment:
types: [created]
# Manual trigger so workflow changes can be exercised from a feature branch
# without merging. Pick the feature branch in the Actions UI and pass the
# PR number to review.
workflow_dispatch:
inputs:
pr_number:
description: "PR number to review"
required: true
type: string

# Cancel an in-flight review if another trigger fires on the same PR (e.g.
# back-to-back `@claude` comments, or a draft→ready transition while an
# earlier run is still going). Note: `synchronize` is not in the trigger
# list, so plain pushes do not trigger or cancel anything.
concurrency:
group: claude-review-${{ github.event.pull_request.number || github.event.issue.number || inputs.pr_number }}
cancel-in-progress: true

jobs:
review:
Expand All @@ -43,7 +26,7 @@ jobs:
github.event.issue.pull_request != null &&
contains(github.event.comment.body, '@claude') &&
contains(fromJSON('["OWNER", "MEMBER"]'), github.event.comment.author_association)
) || github.event_name == 'workflow_dispatch'
)
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
Expand All @@ -67,5 +50,4 @@ jobs:
claude_args: |
--model claude-opus-4-7
--max-turns 30
prompt: |
${{ github.event_name == 'workflow_dispatch' && format('Review PR #{0}. ', inputs.pr_number) || 'Review this PR.' }} Use the pr-review skill if available.
prompt: "Review this PR. Use the pr-review skill if available."
Loading