cli/pkg/httpmock
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
..
legacy.go Remove unused method from httpmock package 2021-06-14 09:39:14 -03:00
registry.go Fix pr checkout <owner>:<branch> when it matches the default branch 2020-07-15 15:35:42 +02:00
stub.go Warn about missing OAuth scopes when reporting HTTP 4xx errors 2021-10-13 23:24:14 +02:00