GitLab returns 404 on a repository/tree call if the repo has zero commits. We checked against the error message but the client library started to return a static 404 error which makes our check fail.
This commit changes the checking logic to check for the clients static ErrNotFound error. This might catch other errors too (repo does not exists at all), but those errors will be caught in the next step.
Checklist
[x] Keep pull requests small so they can be easily reviewed.
[x] Update the documentation.
[x] Categorize the PR by setting a good title and adding one of the labels:
bug, enhancement, documentation, change, breaking, dependency
as they show up in the changelog
GitLab returns
404
on arepository/tree
call if the repo has zero commits. We checked against the error message but the client library started to return a static404
error which makes our check fail.This commit changes the checking logic to check for the clients static
ErrNotFound
error. This might catch other errors too (repo does not exists at all), but those errors will be caught in the next step.Checklist
bug
,enhancement
,documentation
,change
,breaking
,dependency
as they show up in the changelog