-
-
Notifications
You must be signed in to change notification settings - Fork 17
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
Cannot comment on PR #12
Comments
It seems while you're using the github API library, your code treats PR ands Issues the same: https://github.com/cloudposse/github-commenter/blob/master/main.go#L238 I haven't had a chance to look at the github library to see if that follows their logic as well. |
@asiegman we use this successfully to create PR comments here: https://github.com/cloudposse/testing.cloudposse.co/blob/master/codefresh/terraform/pipeline.yml and demonstrated here: cloudposse/testing.cloudposse.co#75 In my experience, the |
I think it's missing: |
It is setting I think the issue is that the token needs but does not have full |
It's got If it is a token issue, that 404 is very misleading, it should be a 403, but I'm sure you're repeating what's coming from Github. That's what made me check the docs and see that a PR comment had a different URL from what was displayed in the error. I'll keep seeing if I can narrow down the issue. It might be my usage, or something weird in github, and not an actual issue with this binary. |
GitHub returns the 404, we're not casting it to a 403. |
I changed the token to have full repo permissions and that worked. May want to make a note of that in the README, it says you only need status and public repo permissions. |
Given the following config in codefresh to use the container:
The container exits with the following error
It looks like the URL is incorrect according to the documentation here:
https://developer.github.com/v3/pulls/comments/#create-a-comment
If I get time, I'll try to fix this issue myself, just ran out of work day today.
The text was updated successfully, but these errors were encountered: