rdicosmo / updateswh

Browser extension to check and uptate archival of repositories in Software Heritage
MIT License
14 stars 6 forks source link

Handle properly repositories in nested GitLab subgroups #11

Open rdicosmo opened 1 year ago

rdicosmo commented 1 year ago

Unlike GitHub, GitLab allows to nest repositories inside subgroups at arbitrary depth. The current regular expression used to detect and extract a repository url from an url on GitLab (or an instance) does not capture that, so one gets a red button and cannot properly interact with these repositories.

For example, see the behavior on https://gitlab.com/litt-arts-num/fonte-gaia/ok-api

rdicosmo commented 1 year ago

Partially fixed in 342d01a148d2ab7ba3db88aeed0ecaef2a669836 : now nested repositories are properly handled, but subgroup pages pop up a red button, because the GitLab API (correctly) reports that those URLs are not for a repository.