anitya icon indicating copy to clipboard operation
anitya copied to clipboard

Filtering out non-prefixed versions/tags?

Open MingcongBai opened this issue 2 months ago • 2 comments

HMCL, a Minecraft game launcher, has recently switched to a multi-channel update model, with no clear indication of beta/rc in their versions to distinguish between final/pre-releases. This poses a challenge for us Anitya users as Anitya would get them mixed up.

Upon discussion with HMCL's maintainer, we have agreed on using release- prefix to indicate a stable release - all others are to be considered pre-release. However, it seems that the "version prefix" field does filter out non-prefixed versions, but rather simply strips that prefix from the final versions, something like the following:

https://github.com/HMCL-dev/HMCL/releases/tag/release-3.6.20

Is there a way to filter out non-prefixed versions either completely or as pre-release versions? The current Anitya entry may be found here:

https://release-monitoring.org/project/371893

MingcongBai avatar Oct 20 '25 07:10 MingcongBai

The prefix filter is just to remove prefixes that you don't want to see in the final version. You should use the pre-release filter to mark pre-release version, also in this case it will be probably problematic as release- is actually stable and you don't know what would be pre-release in advance., but you can use the v prefix to mark pre-rerelases as the stable release doesn't have them.

Zlopez avatar Oct 20 '25 13:10 Zlopez

The prefix filter is just to remove prefixes that you don't want to see in the final version. You should use the pre-release filter to mark pre-release version, also in this case it will be probably problematic as release- is actually stable and you don't know what would be pre-release in advance., but you can use the v prefix to mark pre-rerelases as the stable release doesn't have them.

That's a good point. I have done just that, just waiting for the rate limit to pass now.

MingcongBai avatar Oct 20 '25 13:10 MingcongBai