Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent duplicate labels when importing more than 99 #22591

Merged
merged 1 commit into from
Jan 24, 2023

Commits on Jan 24, 2023

  1. Prevent duplicate labels when importing more than 99

    Importing labels (via `gitea restore-repo`) did not split them up into
    batches properly. The first "batch" would create all labels, the second
    "batch" would create all labels except those in the first "batch", etc.
    This meant that when importing more than 99 labels (the batch size)
    there would always be duplicate ones.
    
    This is solved by actually passing `labels[:lbBatchSize]` to the
    `CreateLabels()` function, instead of the entire list `labels`.
    drsybren authored and techknowlogick committed Jan 24, 2023
    Configuration menu
    Copy the full SHA
    9028e00 View commit details
    Browse the repository at this point in the history