FN-5643: fix gh api --json flag handling for PR fetches
Fusion-Task-Id: FN-5643 Fusion-Task-Lineage: 2eaba342-1ac7-4ebf-886e-acd22af637ee
This commit is contained in:
7
.changeset/fn-5643-gh-api-json.md
Normal file
7
.changeset/fn-5643-gh-api-json.md
Normal file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
"@runfusion/fusion": patch
|
||||
---
|
||||
|
||||
Fix GitHub PR modal/review fetches that call `gh api` through `runGhJsonAsync`.
|
||||
|
||||
`runGhJson` and `runGhJsonAsync` now skip auto-appending `--json` for the `gh api` subcommand (which already returns JSON and rejects that flag), preventing runtime `unknown flag: --json` errors when loading PR comments/reviews.
|
||||
Reference in New Issue
Block a user