Open jstafford5380 opened 7 months 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 labled with Status: Up for grabs
. You & others like you are the reason all of this works! So thank you & happy coding! 🚀
Are you using the appropriate plugin for GHES? https://github.com/octokit/plugin-enterprise-server.js/
What happened?
When calling
getCommit()
with valid parameters, I'm getting a 404 error. I noticed in the log that it called the endpoint:https://:host/api/v3/repos/:org/:repo/git/commits?sha={sha}
I was unable to find this in the REST documentation. However, in the REST documentation, the endpoint for getting a single commit is:
https://:host/api/v3/repos/:org/:repo/commits/:sha
When I call this endpoint with the same sha, I get a result.
This is against GitHub Enterprise 3.10.1. It's also worth noting that in the particular case, the sha im trying to look up is on a branch being PR'd. Not sure if that matters. Like I said, the endpoint that octokit uses vs. the documented endpoint suceeeds.
Versions
octokit-core.js/5.1.0 Node.js/20.8.1
Relevant log output
Code of Conduct