Repository navigation
fix(review-pr): use JSON payload for review comments instead of broken -f flag syntax - #1410
Merged
Merged
Conversation
…n -f flag syntax
The `gh api -f 'comments[0][path]=...'` syntax converts array indices to
object keys, sending `{"0": {...}}` instead of `[{...}]`. GitHub rejects
this, causing the bot to waste a tool call recovering on every review with
inline comments.
Switch the documented example to use a JSON payload file with `--input`,
which is the pattern the bot already discovers on recovery and is consistent
with running-in-ci guidance.
Closes #1409
Co-Authored-By: Claude Opus 4.6 <[email protected]>
worktrunk-bot
added a commit
that referenced
this pull request
Mar 10, 2026
…oad example The example introduced in #1410 referenced /tmp/review-body.md without showing how to create it, making the example incomplete. Add the missing heredoc so agents following the example don't fail at the cat step. Closes #1417 Co-Authored-By: Claude Opus 4.6 <[email protected]>
1 task done
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.
Summary
gh api -f 'comments[0][path]=...'syntax in the review-pr skill with a JSON payload approach using--input-fflag syntax converts array indices to object keys ({"0": {...}}instead of[{...}]), which GitHub rejectsCloses #1409
Test plan
🤖 Generated with Claude Code