Open hegdeashwin opened 1 week ago
👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday! We have a process in place for prioritizing and responding to your input. Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labeled with Status: Up for grabs
. You & others like you are the reason all of this works! So thank you & happy coding! 🚀
Observations -
octokit.rest.issues.createComment
, octokit.rest.issues.setLabels
, GET /repos/{owner}/{repo}/pulls/{pull_number}/files
and POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers
are working fine.
But octokit.rest.pulls.createReviewComment
is failing with 401 error
Sorry I thought I responded to your issue
auth: GITHUB_TOKEN,
I think this is the issue, it's not needed and probably overides the authentication of the octokit
instance passed to the webhook handlers
What happened?
GItHub Octokit throws 401 error with GitHub App. Here is the code looks like
Note -
All the values for APP_ID, ENTERPRISE_HOSTNAME, GITHUB_TOKEN, PRIVATE_KEY_PATH, WEBHOOK_SECRET seems to be correct and verified.
Versions
Node v18, Octokit v4.0.2
Relevant log output
Code of Conduct