-
Notifications
You must be signed in to change notification settings - Fork 346
Closed
Description
Description
When gh api commands are proxied through rtk gh api, the output gets truncated. This breaks programmatic use cases where the full output is needed, such as retrieving PR bodies to update them.
Reproduction
# Direct — returns full body
gh api repos/OWNER/REPO/pulls/123 --jq '.body'
# Via rtk — output is truncated with "... (truncated)"
rtk gh api repos/OWNER/REPO/pulls/123 --jq '.body'Impact
Commands like gh api ... --jq '.body' are used to retrieve PR bodies for editing. When truncated, the data is unusable and the PR body gets corrupted on update.
Expected behavior
gh api output should either:
- Be passed through unfiltered (since API responses are typically consumed programmatically, not by humans)
- Or respect
--jqoutput as a signal that the user needs exact output
Workaround
Currently excluding gh api from the rtk rewrite hook entirely.
Environment
- rtk 0.21.1
- gh 2.x
- macOS (darwin arm64)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels