i was trying to get the list of open pull request for a branch. i tried hitting this API
GET /2.0/repositories/{username}/{repository_slug}/pullrequests?state=OPEN&source.branch.name={branch_name}
i got this response:
{"type": "error", "error": {"message": "Your credentials lack one or more required privilege scopes.", "detail": {"required": ["pullrequest"], "granted": ["repository:delete", "repository:admin", "repository:write"]}}}
The message means that whatever authentication you used, it is not permitted to work with pull requests.
"required": ["pullrequest"]
...means that you need the "pullrequest" scope to make this REST API call.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.