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:
gsxdsm
2026-05-28 22:59:18 -07:00
parent aa7eccbadb
commit d78fbccacc
3 changed files with 91 additions and 6 deletions

View 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.