From fcc6f6631121721b5b88d5c63bfcf2990b76af42 Mon Sep 17 00:00:00 2001 From: typebrook Date: Thu, 26 Dec 2019 14:09:29 +0800 Subject: update --- scripts/gist | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'scripts/gist') diff --git a/scripts/gist b/scripts/gist index 639709e..152c079 100755 --- a/scripts/gist +++ b/scripts/gist @@ -60,9 +60,13 @@ _show_detail() { GIST_ID=$(cat $index | sed -n "$1"p | cut -d' ' -f2 | sed -r 's#.*/##') curl -s -H "$auth_header" $github_api/gists/$GIST_ID |\ jq '{site: .html_url, API: .url, created_at: .created_at, updated_at: .updated_at, files: (.files | keys)}' + + curl -s -H "$auth_header" $github_api/gists/$GIST_ID/comments |\ + jq '.[] | {user: .user.login, created_at: .created_at, updated_at: .updated_at, body: .body}' } # create a new gist with a file and description +# TODO support folder of files _create_gist() { FILE=$(basename $1) -- cgit v1.2.3-70-g09d2