Skip to content

fix(ci): reply to @worktrunk-bot mentions on fork PR inline comments - #1420

Closed
worktrunk-bot wants to merge 1 commit into
mainfrom
fix/issue-1419
Closed

worktrunk-bot wants to merge 1 commit into
mainfrom
fix/issue-1419

Conversation

@worktrunk-bot

Copy link
Copy Markdown
Collaborator

Problem

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 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-redirect job that:

  • Fires only for @worktrunk-bot mentions in inline review comments on fork PRs
  • Uses GITHUB_TOKEN (always available, even on fork PRs) to post a reply
  • Directs the user to re-post their request as a Conversation tab comment, where the bot can respond normally

Testing

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

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]>
@worktrunk-bot

Copy link
Copy Markdown
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]>
@max-sixty
max-sixty deleted the fix/issue-1419 branch June 18, 2026 06:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automated-fix Automated CI fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bot failing to respond

1 participant