Commit c928dec

mo khan <mo@mokhan.ca>
2021-07-13 02:57:58
list the installations of the app
1 parent 6e71b33
Changed files (1)
bin
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(' '))