-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Troubles posting comment to a pull request using GitHub app API #1030
Comments
This all looks right to me 🤔 Could you try a curl command? curl -X POST -H "Accept: application/vnd.github.squirrel-girl-preview" -H"Authorization: token xxx" https://api.github.com/repos/slevomat/slevomat/issues/8073/comments -d '{"body": "foo"}' If that gives you the same result, can you send the curl command with the error message to support? https://github.com/support They will forward it to the API team. Support is great and very responsive :) |
Yes, it's a problem with their API, the support responded to me that they are working to it and that meanwhile I can fix it with "repository metadata" permissions :) Thank you! |
Is this fixed now? |
@JJ make sure your app have read access to the repository metadata permission. It will save you a lot of headache. |
@gr2m It does have. The problem is that apparently no one without write access to the repository can't create anything there. This causes actions/first-interaction#10, for instance, as well as actions/labeler#12. I wouldn't say this is a feature, but looks more like a bug. |
That sounds it's an unrelated issue. The original issue was about a GitHub App, the issues you linked are about GitHub Actions? |
Right, the error message is different. Thanks for answering anyway. |
Hello,
I am trying to post a comment to a pull request on behalf of GitHub app and I get this error:
I enabled debug messages in Octokit, so this is the full output:
The code looks like this:
I checked that I have both PR and issues write permissions. What am I doing wrong?
The text was updated successfully, but these errors were encountered: