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
|
||
|---|---|---|
| .. | ||
| cmd | ||
| cmdutil | ||
| export | ||
| extensions | ||
| findsh | ||
| githubsearch | ||
| githubtemplate | ||
| httpmock | ||
| iostreams | ||
| jsoncolor | ||
| liveshare | ||
| markdown | ||
| prompt | ||
| set | ||
| surveyext | ||
| text | ||