ghtool 0.7.2

A command-line tool for interacting with Github API with some specialized features oriented around Checks
1
2
3
4
5
6
7
8
9
10
11
12
13
# https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/authorizing-oauth-apps#device-flow
POST https://github.com/login/device/code
Content-Type: application/x-www-form-urlencoded
`client_id=32a2525cc736ee9b63ae&scope=repo+read%3Aorg`

HTTP 200
[Captures]
device_code: regex "device_code=(.*?)&"

POST https://github.com/login/oauth/access_token
Accept: application/json
Content-Type: application/x-www-form-urlencoded
`client_id=Iv1.1bbd5e03617adebb&device_code={{device_code}}&grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Adevice_code`