Skip to content

Commit 9d13a37

Browse files
committed
fix: prevent double-trigger of Claude Code on same issue
Remove issue opening trigger from claude.yml to avoid conflicts with spec-to-code.yml workflow. Now Claude Code only triggers on comments, enabling clean approved workflow: 1. Create issue without @claude 2. Add 'approved' label 3. spec-to-code.yml posts @claude comment 4. claude.yml triggers on comment (not on issue opening) This prevents the issue where Claude Code would trigger twice for the same issue and ignore the second trigger.
1 parent 7ca4f26 commit 9d13a37

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

.github/workflows/claude.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ on:
55
types: [created]
66
pull_request_review_comment:
77
types: [created]
8-
issues:
9-
types: [opened, assigned]
108
pull_request_review:
119
types: [submitted]
1210

@@ -15,8 +13,7 @@ jobs:
1513
if: |
1614
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) ||
1715
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) ||
18-
(github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude')) ||
19-
(github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')))
16+
(github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude'))
2017
runs-on: ubuntu-latest
2118
permissions:
2219
contents: write # Allow commits

0 commit comments

Comments
 (0)