[BUG]: Commit not found when it exists #657
Labels
Status: Up for grabs
Issues that are ready to be worked on by anyone
Type: Bug
Something isn't working as documented
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
The text was updated successfully, but these errors were encountered: