gitlab-copy
gitlab-copy copied to clipboard
Remove pagination limit on label copy
While transfering a large amount of labels, I found my self limited to 20 by the Gitlab API pagination.
This PR fixes this issue by fetching label with a page loop.
Thanks @skwi! Before I merge your patch, would you mind adding some UT using fakeClient
and the gitlab.GitLaber
interface? To validate the patch. Thanks!
Yes I will. I should be able to find time this week to write the UT.
To be honest, this is the first time I write code in Go so I need some time to find out why UT are now failing, but I'm working on it.
To be honest, this is the first time I write code in Go so I need some time to find out why UT are now failing, but I'm working on it.
No worries, thanks for your contribution.
Related to #53