badges / badges/shields

Optional query for GitHub releases to make badge yellow if not using latest

Open
#9,365 3 comments 0 reactions 0 assignees View on GitHub
needs-discussion
Dominant language
JavaScript
Stars
27.2k
Forks
5.6k
Avg merge
1d 8h
Merged PRs (30d)
46

Description

:clipboard: **Description**

Add a parameter to compare the specified release against the latest release and change the badge color if the release is not the latest.

For Example:
```
https://img.shields.io/github/v/release/defenseunicorns/zarf?filter=v0.28.0&label=using%20Zarf&compare=latest
```
The badge would be yellow when there is a newer release available

Contributor guide

Open the contributing guide

Research direction

Start from the GitHub release badge endpoint shown in the example and locate its implementation and existing tests. Trace how the filter parameter selects a release, then determine where a compare=latest option belongs; done means the badge turns yellow when the selected release is older than the latest release and existing behavior remains unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
github, javascript
Domain
api, backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.