[API bug] /repos/{owner}/{repo}/commits/{ref} endpoint doesn't accept tag ref but the docs indicate it should #190761
Replies: 1 comment
-
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
🏷️ Discussion Type
Bug
💬 Feature/Topic Area
API
Body
I believe I've found a bug with the GET /repos/{owner}/{repo}/commits/{ref} endpoint. In the description for the "ref" path parameter it says:
However when I try using a tag ref I get an error:
I know this tag definally exists and I can confirm it because weirdly the ref is resolved correctly when using the /status endpoint:
Also I get 422 response even when searching for a validly formatted but non-existing SHA hash. Which seems odd since I would have thought a 404 makes more sense.
Also also it would be nice if the docs indicated if slashes in ref should be escaped or not. From trial an error it seems to work either way but it would be nice to have some confirmation about that.
Thanks for looking at this!
Beta Was this translation helpful? Give feedback.
All reactions