'How to get the rss feed of github release , only latest release, exclude pre release?

For bitcoin, the release page:
https://github.com/bitcoin/bitcoin/releases
I can get github release rss seed by append ".atom" on it
https://github.com/bitcoin/bitcoin/releases.atom
But this will include pre release tags.
How can I get latest release tag only?



Solution 1:[1]

Pre-releases are listed in the releases.atom feed, but they are not marked as pre-releases (no way to separate a pre-release from a final release as far as I can tell).

This information is instead available from the GitHub API.

Solution 2:[2]

you'll have to resort to the API.

unbelievable that such an essential feature is missing from the Atom feeds

Solution 3:[3]

May I suggest lastversion?

The lastversion utility is actually capable of detecting pre-releases from GitHub atom feeds alone, by looking at beta version identifiers in the tags.

It does use API as well for attempting to try returning more data from a release.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1
Solution 2 user1259710
Solution 3 Danila Vershinin