Github API branches REST call returns incorrect data #142198
Replies: 2 comments
-
💬 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.
-
Hi @noblebright , It sounds like the API might not be reflecting the most up-to-date information from the repository. A couple of things you could try: API Caching Delay: Sometimes, the API responses might be delayed or cached, which could be why it's not showing the latest state of the repository. You could try appending ?nocache=true to the API request URL to bypass potential caching issues: Branch Protection Rules: Double-check if there are any branch protection rules or settings in the repository that might affect how branches are listed via the API. Permissions Issue: If the repo has restricted access or permissions, ensure your API token has the right scopes (such as repo access). Sometimes, branches visible in the UI might not be available via the API if the permissions aren't set correctly. Verify Branch Name: If the stable branch has been renamed or contains special characters, there might be a mismatch in how the API is interpreting the branch name. Ensure that the exact branch name is being queried. If none of these help, I recommend reaching out to GitHub Support or creating an issue on the GitHub API support page. Hopefully, they can help clarify the issue. |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Bug
Body
https://api.github.com/repos/BeatAroundTheBuscher/ROSIGMA/branches claims that there's no "stable" branch for this repo, but the web UI clearly shows the stable branch. What's going on?
Beta Was this translation helpful? Give feedback.
All reactions