fix(pr show): slim down output, remove nested repo/user objects
This commit is contained in:
@@ -155,7 +155,19 @@ cmd_show() {
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
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
|
# Subcommand: merge
|
||||||
|
|||||||
Reference in New Issue
Block a user