Skip to content

Trigger react-on-comment workflow on issues opened#473

Merged
ondrejmirtes merged 1 commit into2.0.xfrom
react-on-issue-opened
Feb 19, 2026
Merged

Trigger react-on-comment workflow on issues opened#473
ondrejmirtes merged 1 commit into2.0.xfrom
react-on-issue-opened

Conversation

@phpstan-bot
Copy link
Copy Markdown

Summary

  • Add issues: types: [opened] trigger to the react-on-comment workflow so it fires when new issues are opened containing the trigger phrase
  • 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

Changes

The COMMENT_BODY env variable now falls back through:

github.event.comment.body || github.event.review.body || github.event.issue.body || ''

Test plan

  • Verify workflow triggers when a new issue is opened with @phpstan-bot in the body
  • Verify existing comment and review triggers still work as before

🤖 Generated with Claude Code

…ssue 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 <noreply@anthropic.com>
@ondrejmirtes ondrejmirtes merged commit 4c7a7dd into 2.0.x Feb 19, 2026
36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants