Repository navigation
fix(ci): reply to @worktrunk-bot mentions on fork PR inline comments - #1420
Closed
worktrunk-bot wants to merge 1 commit into
Closed
worktrunk-bot wants to merge 1 commit into
worktrunk-bot wants to merge 1 commit into
Conversation
When someone mentions @worktrunk-bot in an inline review comment on a fork PR, the main claude job is silently skipped because secrets aren't available. This left users with no feedback — they had no way to know why the bot wasn't responding. Add a fork-pr-redirect job that detects this case and posts a reply explaining the limitation and directing the user to the Conversation tab, where the bot can respond normally. Closes #1419 Co-authored-by: Claude <[email protected]>
This was referenced Mar 10, 2026
Closed
Collaborator
Author
|
Superseded by #1421, which fixes the underlying restriction instead of working around it. |
max-sixty
pushed a commit
that referenced
this pull request
Mar 10, 2026
## Summary - Remove the fork filter (`head.repo.full_name == github.repository`) from the `pull_request_review_comment` trigger in `claude-mention.yaml` - The filter was added in cd16545 based on the assumption that secrets aren't available for fork PRs — but that restriction only applies to `pull_request` events, not `pull_request_review_comment` (which runs on the base repo and has full secret access) - The `issue_comment` path already works on fork PRs, confirming this Supersedes #1420 (workaround that only posted a redirect notice). ## Test plan - [ ] Verify CI passes (workflow-only change, no code) - [ ] Test by posting an inline review comment mentioning `@worktrunk-bot` on a fork PR Closes #1419 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: worktrunk-bot <[email protected]> Co-authored-by: Claude Opus 4.6 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
When someone mentions
@worktrunk-botin an inline review comment on a fork PR, the mainclaudejob is silently skipped because secrets aren't available for fork PRs. This leaves users with no feedback — they have no way to know why the bot isn't responding.This is exactly what happened on #1401: all three attempts to reach the bot (via inline review comments) were silently skipped because the PR came from a fork.
Solution
Add a lightweight
fork-pr-redirectjob that:@worktrunk-botmentions in inline review comments on fork PRsGITHUB_TOKEN(always available, even on fork PRs) to post a replyTesting
This is a workflow-only change — no code to test. The job condition is the inverse of the existing fork filter on the main job, so they're mutually exclusive.
Closes #1419 — automated triage