fix(pr show): slim down output, remove nested repo/user objects

This commit is contained in:
lyn
2026-04-01 16:56:32 +00:00
parent 62f693605c
commit fc83378284

View File

@@ -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