cli/pkg/cmd
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
..
actions Merge remote-tracking branch 'origin' into go-module-v2 2021-09-02 20:02:16 +02:00
alias Rename the module to "github.com/cli/cli/v2" 2021-08-25 12:41:30 +02:00
api Warn about missing OAuth scopes when reporting HTTP 4xx errors 2021-10-13 23:24:14 +02:00
auth Ensure correct path to gh after gh auth refresh git credential setup 2021-09-24 14:43:48 +02:00
browse fix browse of markdown files with line ranges (#4310) 2021-09-14 16:08:19 +02:00
codespace Add org scoped port forwarding + fix test formatting (#4497) 2021-10-13 13:56:03 -04:00
completion Rename the module to "github.com/cli/cli/v2" 2021-08-25 12:41:30 +02:00
config Rename the module to "github.com/cli/cli/v2" 2021-08-25 12:41:30 +02:00
extension Use concurrency to check for extension updates 2021-10-12 09:44:41 -07:00
factory Avoid resolving executable() until requested at runtime 2021-09-24 14:42:41 +02:00
gist Warn about missing OAuth scopes when reporting HTTP 4xx errors 2021-10-13 23:24:14 +02:00
issue add more hints to docs 2021-09-25 08:38:26 +02:00
pr Add tests for pr diff --patch 2021-10-08 13:53:19 +02:00
release add more hints to docs 2021-09-25 08:38:26 +02:00
repo Add repo archive command (#4410) 2021-10-12 12:48:40 +02:00
root Don't allow the lazyLoadedHTTPClient mutex to wrap Do() 2021-10-01 11:18:15 +02:00
run Merge pull request #4090 from bchadwic/pr-checks 2021-09-27 09:25:21 -07:00
secret Rename the module to "github.com/cli/cli/v2" 2021-08-25 12:41:30 +02:00
ssh-key Rename the module to "github.com/cli/cli/v2" 2021-08-25 12:41:30 +02:00
version Rename the module to "github.com/cli/cli/v2" 2021-08-25 12:41:30 +02:00
workflow Merge pull request #4090 from bchadwic/pr-checks 2021-09-27 09:25:21 -07:00