From c928decf86664cb8b9598a57bc22ae27fe2d34fc Mon Sep 17 00:00:00 2001 From: mo khan Date: Mon, 12 Jul 2021 20:57:58 -0600 Subject: list the installations of the app --- bin/jwt | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/bin/jwt b/bin/jwt index 8b616f8..cee1813 100755 --- a/bin/jwt +++ b/bin/jwt @@ -21,12 +21,18 @@ jwt = JWT.encode( "RS256" ) -command = [ +system([ :curl, '-i', "-H 'Authorization: Bearer #{jwt}'", "-H 'Accept: application/vnd.github.v3+json'", "https://api.github.com/app" -].map(&:to_s).join(' ') +].map(&:to_s).join(' ')) -system(command) +system([ + :curl, + '-i', + "-H 'Authorization: Bearer #{jwt}'", + "-H 'Accept: application/vnd.github.v3+json'", + "https://api.github.com/app/installations" +].map(&:to_s).join(' ')) -- cgit v1.2.3