Improve adding and removing of labels in GitLab

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 1.0
    • Affects Version/s: None
    • Component/s: libraries
    • None

      The current implementation for adding and removing labels in GitLab gets all current labels from the MR, modifies the returned set and then sets all labels. That was likely the only way of doing it when the code was written. Looking at the Gitlab API today, there is "add_labels" and "remove_labels" on a merge_request, and I have manually verified that they work. We should change our implementation to use these instead to avoid potential races between bots.

            Assignee:
            Zhao Song
            Reporter:
            Erik Joelsson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: