Closed applejag closed 2 years ago
Let's say you have projects
https://gitlab.local/mygroup/myrepo
https://gitlab.local/mygroup/myrepo2
Then when importing the first one it fails with the log message:
INFO[2021-05-04T12:14:13Z] Invalid projects count group name=mygroup project name=myrepo
The log message comes from here:
https://github.com/iver-wharf/wharf-provider-gitlab/blob/413c450167f12fc9978c6fe75b192b7e993f891a/gitlab.go#L48-L66
When searching for projects in the above function, then after that do yet another filtering for the project names as client.listProjectsFromGroup apparently does a search and matches subset project names
client.listProjectsFromGroup
Let's say you have projects
https://gitlab.local/mygroup/myrepo
https://gitlab.local/mygroup/myrepo2
Then when importing the first one it fails with the log message:
The log message comes from here:
https://github.com/iver-wharf/wharf-provider-gitlab/blob/413c450167f12fc9978c6fe75b192b7e993f891a/gitlab.go#L48-L66
Proposed solution
When searching for projects in the above function, then after that do yet another filtering for the project names as
client.listProjectsFromGroup
apparently does a search and matches subset project names