Commit graph

3 commits

Author SHA1 Message Date
Christian Couder
760d4a1621 Avoid creating labels when removing them
IssuableBaseService has been updated so that labels are not
created when push options to remove them are received.
2019-09-04 12:11:31 +02:00
Christian Couder
f00db0c342 Support adding and removing labels w/ push opts
MergeRequests::PushOptionsHandlerService has been updated to allow
adding and removing labels to a merge request using git push options.

To create a new merge request and add 2 labels to it:

      git push -u origin -o merge_request.create \
        -o merge_request.label="My label 1" \
        -o merge_request.label="My label 2"

To update an existing merge request and remove a label while
adding a different label:

      git push -u origin -o merge_request.label="My added label" \
        -o merge_request.unlabel="My removed label"

Issue https://gitlab.com/gitlab-org/gitlab-ce/issues/64320
2019-09-04 12:11:24 +02:00
Jarka Košanová
96153f2055 Check if labels are available for target issuable
- labels have to be in the same project/group
as an issuable
2019-03-28 12:06:31 +01:00