Skip to content

Commit e8e9032

Browse files
phpstan-botclaude
authored andcommitted
React on issues opened and fall back to issue body
Add `issues: [opened]` event trigger so the workflow also reacts when a new issue is created with the trigger phrase. Update the COMMENT_BODY fallback chain to include `github.event.issue.body` so the body is correctly read for issue events. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent a12a6a8 commit e8e9032

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/claude-react-on-comment.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: "Claude React on comment"
22

33
on:
4+
issues:
5+
types: [opened]
46
issue_comment:
57
types: [created]
68
pull_request_review:
@@ -29,7 +31,7 @@ jobs:
2931
- name: "Check for trigger phrase"
3032
id: check
3133
env:
32-
COMMENT_BODY: ${{ github.event.comment.body || github.event.review.body || '' }}
34+
COMMENT_BODY: ${{ github.event.comment.body || github.event.review.body || github.event.issue.body || '' }}
3335
run: |
3436
if echo "$COMMENT_BODY" | grep -qF "@phpstan-bot"; then
3537
echo "triggered=true" >> "$GITHUB_OUTPUT"

0 commit comments

Comments
 (0)