Skip to content

fix(ci): set trigger_phrase and provide review-response prompt - #1649

Merged
max-sixty merged 1 commit into
mainfrom
reviewer
Mar 21, 2026
Merged

max-sixty merged 1 commit into
mainfrom
reviewer

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

The claude-code-action defaults trigger_phrase to @claude. When claude-review.yaml handled pull_request_review events on bot-authored PRs, it passed an empty prompt (''), causing the action to fall back to trigger detection — which looked for @claude in the review text. Since nobody writes @claude in reviews, the action always skipped. This meant formal reviews on bot-authored PRs were silently ignored by claude-review (only handled incidentally via claude-mention's pull_request_review_comment path when inline comments were present).

Two fixes:

  • Set trigger_phrase: "@worktrunk-bot" in both interactive workflows (claude-review, claude-mention) so the action never defaults to @claude
  • Provide a non-empty prompt for the pull_request_review path in claude-review.yaml, so the action runs the prompt directly instead of falling back to trigger detection

The five automated workflows (ci-fix, hourly, nightly, renovate, triage) are unchanged — they all provide explicit prompts, making trigger_phrase irrelevant.

Evidence from PR #1557: run 23132865052 logged No trigger was met for @claude / Context prompt: NO PROMPT / No trigger found, skipping remaining steps despite the workflow's if: condition correctly selecting the event.

This was written by Claude Code on behalf of @max-sixty

Add trigger_phrase "@worktrunk-bot" to both workflows to explicitly define the mention required to activate Claude. Update claude-review workflow prompt to dynamically handle pull_request_review events with full context about the review and PR, replacing the static prompt with a format that includes the review URL and instructs Claude to read full context before responding.
@max-sixty
max-sixty merged commit 3e7ef88 into main Mar 21, 2026
23 checks passed
@max-sixty
max-sixty deleted the reviewer branch March 21, 2026 23:28
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