-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Open
Labels
bugSomething isn't workingSomething isn't workingfeedbackgh-issuerelating to the gh issue commandrelating to the gh issue commandhelp wantedContributions welcomeContributions welcomep3Affects a small number of users or is largely cosmeticAffects a small number of users or is largely cosmetic
Description
$ gh issue create --project abc
Creating issue in org/repo
? Title (required) test
? Choose a template Open a blank issue
? Body <Received>
? What's next? Submit
X operation failed. To restore: gh issue create --recover /tmp/gh262315914.json
GraphQL: Your token has not been granted the required scopes to execute this query. The 'addProjectV2ItemById' field requires one of the following scopes: ['project'], but your token has only been granted the: ['gist', 'read:org', 'read:project', 'repo', 'workflow'] scopes. Please modify your token's scopes at: https://github.com/settings/tokens.
The link is not helpful, since I don't have any PATs.
Instead, it should behave like this command:
$ gh project list
error: your authentication token is missing required scopes [read:project]
To request it, run: gh auth refresh -s read:project
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingfeedbackgh-issuerelating to the gh issue commandrelating to the gh issue commandhelp wantedContributions welcomeContributions welcomep3Affects a small number of users or is largely cosmeticAffects a small number of users or is largely cosmetic