On Tuesday, March 26 2024, Soren Stoutner wrote:

> https://wiki.debian.org/debian/watch#Gitlab[1]
>
> "From 2024/03 above solution do not work anymore since Gitlab changed their 
> tag 
> ordering. You can use direct API access:”
>
> version=4
> opts=\
> searchmode=plain,\
>    https://gitlab.com/api/v4/projects/PROJECTID/releases 
> archive/v?\d[\d.]+/<project>/-v?
> ([\d.]+)@ARCHIVE_EXT@

My initial (successful) attempt was to use the API directly, but some
people might be confused about the PROJECTID part (it needs to be
URL-encoded unless you're specifying the actual integer ID directly).

Either way, here are the two options:

version=4
opts=searchmode=plain \
   https://gitlab.com/saalen/highlight/-/tags?sort=updated_desc 
/archive/@ANY_VERSION@/@PACKAGE@@ANY_VERSION@@ARCHIVE_EXT@
#  Using the API:
#  https://gitlab.com/api/v4/projects/saalen%2Fhighlight/releases 
/archive/@ANY_VERSION@/@PACKAGE@@ANY_VERSION@@ARCHIVE_EXT@

-- 
Sergio
GPG key ID: 237A 54B1 0287 28BF 00EF  31F4 D0EB 7628 65FC 5E36
Please send encrypted e-mail if possible
https://sergiodj.net/

Attachment: signature.asc
Description: PGP signature

Reply via email to