Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Copilot Lvl 2
Message 1 of 1

Closing issues via the Rest api as a triage member

Hi,

 

So I'm currently working on a little issue management app using the Github Rest API v3 and I'm attempting to use the app with a personal access token for now. The problem I'm having is when I try to use my app to apply labels or close issues on an org's repo that I'm a Triage member of (actions I can do from the normal Github site as my user) I'm getting a 403 error:

 

Request:

PATCH https://api.github.com/repos/org/repo/issues/number

 

Payload

{"state":"closed","labels":["legacy code"]}

Response

{
"message": "Must have admin rights to Repository.",
"documentation_url": "https://developer.github.com/v3/issues/#edit-an-issue"
}

 

I'm assuming this is because I'm only a Triage user of the org that I'm using my app with. This being said, I can still do it through my Github account. Anyone able to shead some light on this?

 

Thanks in advance.