Revert "refactor: deduplicate scope error handling between api/client.go and project queries"

This commit is contained in:
William Martin 2026-03-12 12:45:48 +01:00 committed by GitHub
parent 2bf1669a6b
commit d45acae604
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 66 additions and 4 deletions

View file

@ -203,6 +203,7 @@ func GenerateScopeErrorForGQL(gqlErr *ghAPI.GraphQLError) error {
}
if missing.Len() > 0 {
s := missing.ToSlice()
// TODO: this duplicates parts of generateScopesSuggestion
return fmt.Errorf(
"error: your authentication token is missing required scopes %v\n"+
"To request it, run: gh auth refresh -s %s",