Badge for latest GitHub pre-release excluding later non-pre-release releases
- Dominant language
- JavaScript
- Stars
- 27.2k
- Forks
- 5.6k
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 46
Description
### Are you experiencing an issue with...
shields.io
### 🐞 Description
I asked on [StackOverflow](https://stackoverflow.com/questions/72063983/shields-io-badge-for-latest-github-pre-release-excluding-later-release) but no answer, if not appropriate to ask here, apologies, please redirect:
How can I create a badge that will display the latest pre-release version, excluding later releases that are not marked pre-release?
The current behavior allows for "inclusion" of a pre-release, but I want to explicitly only get the latest pre-release, ignoring any later releases that are not pre-release.
E.g.
```


```
From example [releases](https://github.com/ptr727/PlexCleaner/releases), expected that the badges list `2.7.11` as latest and `2.7.10-ga8a94550e6` as latest pre-release. (at time of writing).
Iterating over releases and finding pre-release by attribute seems [possible](https://stackoverflow.com/questions/67688662/how-can-i-get-the-latest-pre-release-release-for-my-github-repo-bash).
### 🔗 Link to the badge


### 💡 Possible Solution
_No response_
Contributor guide
Research direction
Start by locating the shields.io GitHub release badge endpoint and the release-selection logic that handles include_prereleases. Compare its result with the linked PlexCleaner releases; done means the badge reports the newest prerelease while ignoring later non-prerelease releases, without changing the latest-release badge.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- github, javascript
- Domain
- api
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100