Skip to content

Commit 3f5db03

Browse files
committed
gha: change claude-review job condition to edge-triggered
Only run workflow when label is applied to reduce extra reviews on intermediate changes. Also need to disable `track_progress` because the feature only works on events opened, synchronize, ready_for_review, reopened. See: https://github.com/anthropics/claude-code-action/blob/v1.0.43/action.yml#L108-L111
1 parent accd93e commit 3f5db03

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/claude-code-review.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
name: claude-code-review
33
on:
44
pull_request:
5-
types: [opened, synchronize, ready_for_review, reopened, labeled]
5+
types: [labeled]
66
jobs:
77
claude-review:
8-
if: contains(github.event.pull_request.labels.*.name, 'claude-review')
8+
if: github.event.label.name == 'claude-review'
99
runs-on: ubuntu-24.04
1010
permissions:
1111
contents: read
@@ -29,7 +29,7 @@ jobs:
2929
allowed_non_write_users: ""
3030
github_token: ${{ github.token }} # needed to test changes to this file in a PR before merge
3131
show_full_output: false
32-
track_progress: true
32+
track_progress: false
3333
use_commit_signing: true
3434
additional_permissions: |
3535
actions: read

0 commit comments

Comments
 (0)