You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
https://docs.github.com/en/rest/issues/comments?apiVersion=2022-11-28#create-an-issue-comment states that in order to create PR comment one needs eitherissues:write or pull_requests:write permissions. However this is not correct. When GitHub App has issues:writeandpull_requests:read permissions assigned and is calling POST /repos/{owner}/{repo}/issues/{issue_number}/comments endpoint on a PR ID, it will get 403 Forbidden response.
It is either a bug in API documentation, or a bug in permissions checking.
BugSomething isn't working correctlyAPI and WebhooksDiscussions and conversations related to APIs or Webhooks
1 participant
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Select Topic Area
Bug
Body
https://docs.github.com/en/rest/issues/comments?apiVersion=2022-11-28#create-an-issue-comment states that in order to create PR comment one needs either
issues:write
orpull_requests:write
permissions. However this is not correct. When GitHub App hasissues:write
andpull_requests:read
permissions assigned and is callingPOST /repos/{owner}/{repo}/issues/{issue_number}/comments
endpoint on a PR ID, it will get403 Forbidden
response.It is either a bug in API documentation, or a bug in permissions checking.
Beta Was this translation helpful? Give feedback.
All reactions