worktrunk icon indicating copy to clipboard operation
worktrunk copied to clipboard

[ci] lean towards replying to comments

Open max-sixty opened this issue 8 months ago • 1 comments

here: https://github.com/max-sixty/worktrunk/pull/1266

could we bias towards replying to towards a comment, rather than responding in a new thread?

[as ever — read the log, read the skill, diagnose the issue, thank you]

max-sixty avatar Mar 05 '26 06:03 max-sixty

Thanks for reporting this! I looked at the specific case from PR #1266 — the inline review comment about strip_remote_prefix got a top-level conversation comment response instead of an in-thread reply.

The root cause is that the claude-mention workflow didn't distinguish between issue_comment and pull_request_review_comment events — both got the same prompt with no guidance about reply placement.

I've opened #1278 with a fix that:

  1. Adds a dedicated prompt path for pull_request_review_comment events, passing the review comment ID and explicit instructions to reply via gh api repos/{repo}/pulls/{number}/comments/{id}/replies
  2. Adds a "Replying to Comments" section to the running-in-ci skill with guidance on detecting comment types and using the replies API

A maintainer will review it shortly.

worktrunk-bot avatar Mar 05 '26 07:03 worktrunk-bot