[WinGet] feat: add WinGet release date badge#11747
Open
ambujvashistha wants to merge 1 commit intobadges:masterfrom
Open
[WinGet] feat: add WinGet release date badge#11747ambujvashistha wants to merge 1 commit intobadges:masterfrom
ambujvashistha wants to merge 1 commit intobadges:masterfrom
Conversation
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
Contributor
|
Member
|
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 |
Author
so should i close it or let it be..? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #11285
Adds a new
/winget/release-date/{name}badge that displays theReleaseDatefield from a package's latest version installer manifest.How it works
latest()helper.{name}.installer.yamlvia a second GraphQL query.ReleaseDateYAML field from the manifest text.renderDateBadge().Edge cases handled
package not foundrelease date not availableinstaller manifest not foundTests
Three mocked tests added and passing. Live test requires a GitHub token in
local.yml(same as the existing WinGet version badge).