From cb4753a7dde1519c299e7965c8db8ad50e65d3b2 Mon Sep 17 00:00:00 2001 From: phpstan-bot Date: Thu, 19 Feb 2026 08:16:17 +0000 Subject: [PATCH] Trigger react-on-comment workflow on issues opened and fall back to issue body Add `issues: types: [opened]` trigger so the workflow reacts when new issues are opened with the trigger phrase. Also add `github.event.issue.body` as a fallback in COMMENT_BODY so the issue description is checked when no comment or review body is available. Co-Authored-By: Claude Opus 4.6 --- .github/workflows/claude-react-on-comment.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/claude-react-on-comment.yml b/.github/workflows/claude-react-on-comment.yml index e7eee114..487d084a 100644 --- a/.github/workflows/claude-react-on-comment.yml +++ b/.github/workflows/claude-react-on-comment.yml @@ -1,6 +1,8 @@ name: "Claude React on comment" on: + issues: + types: [opened] issue_comment: types: [created] pull_request_review: @@ -29,7 +31,7 @@ jobs: - name: "Check for trigger phrase" id: check env: - COMMENT_BODY: ${{ github.event.comment.body || github.event.review.body || '' }} + COMMENT_BODY: ${{ github.event.comment.body || github.event.review.body || github.event.issue.body || '' }} run: | if echo "$COMMENT_BODY" | grep -qF "@phpstan-bot"; then echo "triggered=true" >> "$GITHUB_OUTPUT"