TODO: this matches a token prefix itself. It could ask gh.AuthConfig.ActiveTokenType instead.
(token string)
| 443 | // TODO: this matches a token prefix itself. It could ask |
| 444 | // gh.AuthConfig.ActiveTokenType instead. |
| 445 | func expectScopes(token string) bool { |
| 446 | return strings.HasPrefix(token, "ghp_") || strings.HasPrefix(token, "gho_") |
| 447 | } |
| 448 | |
| 449 | type buildEntryOptions struct { |
| 450 | active bool |