Skip to content

Why does "gh pr edit --add-labels" with a GitHub app token in a private repository require "Project" read permissions? #5307

Answered by mislav
ryu-sato asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, we currently load too much information about a PR prior to editing, including its project cards (if any). This is not necessary for the edit operation of adding labels, and will be addressed in a future release: #4876

The temporary fix is to allow repository-projects:read access to the token doing the editing.

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@ryu-sato
Comment options

Answer selected by ryu-sato
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants