Skip to content

Commit 048bec6

Browse files
phpstan-botclaude
authored andcommitted
Trigger react-on-comment workflow on issues opened and add issue body fallback
- Add `issues: types: [opened]` event trigger so the workflow also reacts when a new issue is opened with the trigger phrase in its body. - Add `github.event.issue.body` to the COMMENT_BODY fallback chain so the trigger phrase check works for issue descriptions. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent ff57171 commit 048bec6

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
@@ -3,6 +3,8 @@ name: "Claude React on comment"
33
on:
44
issue_comment:
55
types: [created]
6+
issues:
7+
types: [opened]
68
pull_request_review:
79
types: [submitted]
810
pull_request_review_comment:
@@ -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)