gitea/services
Sybren 25f4b7d7cd
Prevent duplicate labels when importing more than 99 (#22591)
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`.
2023-01-24 19:44:55 +00:00
..
agit
asymkey
attachment
auth
automerge
context Support org/user level projects (#22235) 2023-01-20 19:42:33 +08:00
convert
cron
externalaccount
forms
gitdiff
issue Fix issue not auto-closing when it includes a reference to a branch (#22514) 2023-01-18 19:24:38 -05:00
lfs
mailer Prevent multiple To recipients (#22566) 2023-01-22 08:23:52 -06:00
markup
migrations Prevent duplicate labels when importing more than 99 (#22591) 2023-01-24 19:44:55 +00:00
mirror
org
packages
pull When updating by rebase we need to set the environment for head repo (#22535) 2023-01-19 17:31:44 -05:00
release
repository When updating by rebase we need to set the environment for head repo (#22535) 2023-01-19 17:31:44 -05:00
task
user
webhook
wiki