Bug#1116001: vcswatch: doesn't work for Archive: GitHub automatic uscan support

Jeremy Bícha <[email protected]> Mon, 22 Sep 2025 16:48:05 -0400
Newsgroups gmane.linux.debian.devel.quality-assurance
Message-ID <CAAajCMYtFQAL6SaO2X2m+H_ZrEDhW0zrvEF95Ffq3iwcpU0A5A__49442.9558910028$1758574184$gmane$org@mail.gmail.com>
Package: qa.debian.org
Severity: important
X-Debbugs-CC: [email protected], [email protected]

sugar-artwork 0.121-2 does not have debian/watch but it instead has
Archive: Github set in debian/upstream/metadata . This correctly works
with uscan from devscripts 2.25.19 but vcswatch appears to be unable
to handle this convention:

https://qa.debian.org/cgi-bin/watch?pkg=sugar-artwork

And here is an abridged version of uscan's output:

uscan info: Looking at $base        =
https://api.github.com/repos/sugarlabs/sugar-artwork/git/matching-refs/tags/
with
    $filepattern        =
https://api.github.com/repos/[^/]+/[^/]+/git/refs/tags/(?:[^/]+\-)?(?:[-_]?[Vv]?(\d[\-+\.:\~\da-zA-Z]*))
found
    $newfile            =
https://api.github.com/repos/sugarlabs/sugar-artwork/git/refs/tags/v0.121
    $mangled_newversion = 0.121
    $newversion         = 0.121
    $lastversion        = 0.121

Thank you,
Jeremy Bícha