Show latest package version in Packages list view #191211
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.
-
Show latest package version in Packages list viewCurrent BehaviorIn the repository-level Packages tab (e.g., Conversely, the organization-level Packages tab (e.g., Why This Feature MattersAs you noted, showing the latest version directly in the list view would:
These improvements align with GitHub's goal of streamlining package management. Workarounds TodayThere is no built-in setting to enable the latest version in the repository list view. However, you can retrieve the data via the GitHub API and build a custom display. Using the GitHub API
Example Python snippet (requires import requests
owner = "<owner>"
repo = "<repo>"
token = "<YOUR_TOKEN>"
headers = {
"Authorization": f"token {token}",
"Accept": "application/vnd.github+json"
}
# Get packages
packages_url = f"https://api.github.com/repos/{owner}/{repo}/packages"
packages = requests.get(packages_url, headers=headers).json()
for pkg in packages:
pkg_type = pkg["package_type"]
pkg_name = pkg["name"]
versions_url = f"https://api.github.com/repos/{owner}/{repo}/packages/{pkg_type}/{pkg_name}/versions"
versions = requests.get(versions_url, headers=headers).json()
if versions:
latest = versions[0] # first is newest
version = latest.get("name") or latest.get("tag") # depends on package type
print(f"{pkg_name} ({pkg_type}): {version}")This script prints the latest version for each package. You can adapt it to generate HTML, CSV, or integrate into a dashboard. Note: The API has rate limits; consider using a GitHub App or increasing quotas if needed. Official DocumentationHow to Submit This Feature RequestGitHub actively collects product feedback. To formally request this feature:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
🏷️ Discussion Type
Product Feedback
💬 Feature/Topic Area
Lists
Body
Currently, in the GitHub Packages tab, the latest version of a package is only visible after clicking into the package details.
It would be very helpful to display the latest version directly in the package list view (e.g., next to the package name).
This would:
Beta Was this translation helpful? Give feedback.
All reactions