Skip to content
This repository has been archived by the owner on Mar 10, 2024. It is now read-only.

Not all labels are copied #53

Open
nackerley opened this issue Feb 1, 2022 · 0 comments
Open

Not all labels are copied #53

nackerley opened this issue Feb 1, 2022 · 0 comments
Assignees
Labels
investigate Investigation / Qualification
Milestone

Comments

@nackerley
Copy link

Thanks for the wonderful tool!

I tried a YAML setup like this to copy labels between projects:

from:
  url: http://gitlab.foobar.com
  token: foo
  project: 1
  labelsOnly: true
to:
  url: http://gitlab.foobar.com
  token: foo
  project: 2

Unfortunately, only the first 20 labels were copied, due to pagination.

An partial quick-fix might be to use per_page=100 to at least increase the number of labels copied, and update "... in order to copy all labels from one project to another ..." at https://github.com/gotsunami/gitlab-copy#more-features.

See:
https://docs.gitlab.com/ee/api/labels.html#list-labels
https://docs.gitlab.com/ee/api/index.html#offset-based-pagination

I'm sorry, I don't speak Go at all so I can't offer a pull request. Thanks for all your hard work!

@matm matm mentioned this issue Mar 1, 2023
@matm matm self-assigned this Mar 4, 2023
@matm matm added the investigate Investigation / Qualification label Mar 4, 2023
@matm matm added this to the v0.8.1 milestone Mar 4, 2023
@matm matm modified the milestones: v0.8.1, v0.9.0 Mar 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
investigate Investigation / Qualification
Projects
None yet
Development

No branches or pull requests

2 participants