Skip to content

[WinGet] feat: add WinGet release date badge#11747

Open
ambujvashistha wants to merge 1 commit intobadges:masterfrom
ambujvashistha:feat/winget-release-date
Open

[WinGet] feat: add WinGet release date badge#11747
ambujvashistha wants to merge 1 commit intobadges:masterfrom
ambujvashistha:feat/winget-release-date

Conversation

@ambujvashistha
Copy link
Copy Markdown

Closes #11285

Adds a new /winget/release-date/{name} badge that displays the ReleaseDate field from a package's latest version installer manifest.

How it works

  1. Fetches the list of version directories (same GraphQL query as existing version badge).
  2. Finds the latest version using the existing latest() helper.
  3. Fetches the content of {name}.installer.yaml via a second GraphQL query.
  4. Extracts the ReleaseDate YAML field from the manifest text.
  5. Renders a formatted date badge using renderDateBadge().

Edge cases handled

  • Package not found: package not found
  • ReleaseDate field absent (it is optional per WinGet schema): release date not available
  • Installer manifest missing: installer manifest not found

Tests

Three mocked tests added and passing. Live test requires a GitHub token in local.yml (same as the existing WinGet version badge).

Adds a new /winget/release-date/{name} badge that displays the
ReleaseDate field from the latest version's installer manifest.

ReleaseDate is an optional field in the WinGet manifests and may
not be present for all packages. The badge returns 'release date
not available' when the field is absent.

Closes badges#11285
@github-actions
Copy link
Copy Markdown
Contributor

Warnings
⚠️

Found badge URL that may not follow our standard route abbreviations in services/winget/winget-release-date.service.js.
Please ensure you've reviewed our conventions.

Messages
📖 ✨ Thanks for your contribution to Shields, @ambujvashistha!

Generated by 🚫 dangerJS against 2d339ab

@PyvesB
Copy link
Copy Markdown
Member

PyvesB commented Mar 31, 2026

Hey @ambujvashistha 👋🏻 I've not looked at the code (and perhaps one of my co-maintainers will pick this up), but I just wanted to point out that there's an existing PR that addresses the same issue: #11622

@PyvesB PyvesB added the service-badge New or updated service badge label Mar 31, 2026
@ambujvashistha
Copy link
Copy Markdown
Author

Hey @ambujvashistha 👋🏻 I've not looked at the code (and perhaps one of my co-maintainers will pick this up), but I just wanted to point out that there's an existing PR that addresses the same issue: #11622

so should i close it or let it be..?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

service-badge New or updated service badge

Development

Successfully merging this pull request may close these issues.

WinGet Service: add ReleaseDate

2 participants