Merge pull request #2207 from cli/codespaces

[Codespaces] Support "integration" tokens
This commit is contained in:
Sam 2020-10-27 15:37:02 +03:00 committed by GitHub
commit edecb2e4f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 66 additions and 131 deletions

View file

@ -98,7 +98,7 @@ func statusRun(opts *StatusOptions) error {
if err != nil {
var missingScopes *api.MissingScopesError
if errors.As(err, &missingScopes) {
addMsg("%s %s: %s", utils.Red("X"), hostname, err)
addMsg("%s %s: the token in %s is %s", utils.Red("X"), hostname, tokenSource, err)
if tokenIsWriteable {
addMsg("- To request missing scopes, run: %s %s\n",
utils.Bold("gh auth refresh -h"),