cli/pkg
Mislav Marohnić 2ca18e0600 Warn about missing OAuth scopes when reporting HTTP 4xx errors
If a 4xx server response lists scopes in the X-Accepted-Oauth-Scopes
header that are not present in the X-Oauth-Scopes header, the final
error messaging on stderr will now include a hint for the user that they
might need to request the additional scope:

    $ gh codespace list
    error getting codespaces: HTTP 403: Must have admin rights to Repository. (https://api.github.com/user/codespaces?per_page=30)
    This API operation needs the "codespace" scope. To request it, run:  gh auth refresh -h github.com -s codespace
2021-10-13 23:24:14 +02:00
..
cmd Warn about missing OAuth scopes when reporting HTTP 4xx errors 2021-10-13 23:24:14 +02:00
cmdutil Avoid resolving executable() until requested at runtime 2021-09-24 14:42:41 +02:00
export Rename the module to "github.com/cli/cli/v2" 2021-08-25 12:41:30 +02:00
extensions fix listing, cleanup 2021-09-28 13:07:01 -05:00
findsh Improvements to gh extensions 2021-06-21 16:54:08 +02:00
githubsearch Convert bool to string early for pr list draft flag 2021-09-20 11:29:37 -07:00
githubtemplate Use T.TempDir for temporary dirs in tests (#3580) 2021-05-07 12:21:26 +02:00
httpmock Warn about missing OAuth scopes when reporting HTTP 4xx errors 2021-10-13 23:24:14 +02:00
iostreams Add helper template functions for rendering tables (#3519) 2021-08-23 21:00:25 +02:00
jsoncolor Fix "null" display in colored JSON output 2021-05-12 16:56:52 +02:00
liveshare Add org scoped port forwarding + fix test formatting (#4497) 2021-10-13 13:56:03 -04:00
markdown Enable emoji in markdown 2021-04-12 09:50:51 -07:00
prompt make prompt.Confirm stubbable 2021-06-08 15:49:37 -05:00
set Have StringSet preserve original order of values 2021-04-07 19:55:09 +02:00
surveyext Fix test flaky due to race in showing/hiding cursor 2021-06-14 10:58:53 +02:00
text Add helper template functions for rendering tables (#3519) 2021-08-23 21:00:25 +02:00