From 1feef0c5b6739a068bb6f1d0cdff93b4f632caed Mon Sep 17 00:00:00 2001 From: lyn Date: Wed, 1 Apr 2026 16:56:32 +0000 Subject: [PATCH] fix(pr show): slim down output, remove nested repo/user objects --- git-hangman-lab/scripts/pr | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/git-hangman-lab/scripts/pr b/git-hangman-lab/scripts/pr index 0a1ab72..a683fb4 100755 --- a/git-hangman-lab/scripts/pr +++ b/git-hangman-lab/scripts/pr @@ -155,7 +155,19 @@ cmd_show() { exit 1 fi - echo "$RESPONSE" | jq '.' + echo "$RESPONSE" | jq '{ + id, number, title, body, state, draft, mergeable, merged, + additions, deletions, changed_files, comments, + html_url, diff_url, patch_url, + user: .user | {login, full_name, html_url}, + labels, + milestone, + assignee, + base: .base | {label, ref, sha}, + head: .head | {label, ref, sha}, + merge_base, + created_at, updated_at, closed_at + }' } # Subcommand: merge