How to get the repository associated with a package from the API #154371
Replies: 6 comments 3 replies
-
Hi @RichardR-cg, thanks for being a part of the GitHub Community! It looks like GitHub’s API does not currently provide a direct way to filter packages by repository. I'm going to tag this post as |
Beta Was this translation helpful? Give feedback.
-
💬 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.
-
Hey, just make that release and keep the commit hash as a refrence to that release. then when pulling, use the commit hash to get that release. |
Beta Was this translation helpful? Give feedback.
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
I'm just updating this to say that it is still required, that the information from @amirh-far does not provide a solution), and I look forward to this being made available via the API. |
Beta Was this translation helpful? Give feedback.
-
Actualmente, la API de GitHub no permite obtener directamente qué repositorio está asociado a un paquete dentro de una organización. Solo se pueden listar los paquetes de la organización sin detalle del repositorio origen. Esta limitación está reportada y en revisión por el equipo de GitHub. API de paquetes: https://docs.github.com/en/rest/packages |
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.
-
Select Topic Area
Question
Body
Within a GitHub organization, there is a repo which has created NuGet packages. From the repo's "Code" page, on the right hand side under "Releases", there is a "Packages" section, and the heading for that hyperlinks to a page showing the packages which have been created by that repo (as opposed to all of the packages within the organization, which is a superset of that). How do I get that list via the API?
I can get all of the packages for the organization by doing
https://api.github.com/orgs/<orgNameGoesHere>/packages?package_type=nuget
but I can't see anything on there which reveals which repo it came from (but maybe it's not obvious). I have also tried using the API to retrieve information about just one version of one package, but I can't see it in there either.
Any help would be gratefully received. Thankyou.
Beta Was this translation helpful? Give feedback.
All reactions