fedora-infra / anitya

A cross-distribution upstream release monitoring project
https://release-monitoring.org
GNU General Public License v2.0
246 stars 104 forks source link

Support wildcards in version filters #1715

Open PureTryOut opened 8 months ago

PureTryOut commented 8 months ago

A lot of projects use versions like -rc1 or -beta2 or -20220301 to indicate pre-releases and what not but also to indicate nightly builds. These currently can't be filtered out from projects because it looks for exact matches (they do seem to be able to be used in pre-release filters though). It would be nice if the filters supported wildcards so -rc* or -beta* would match.

Zlopez commented 8 months ago

The version filter shouldn't be looking at exact matches, but just look for the specified string in the version. See https://github.com/fedora-infra/anitya/blob/ead650c64aecd49d7a341e7249e942cd84584ff8/anitya/lib/backends/__init__.py#L261