• Christian Couder's avatar
    Support adding and removing labels w/ push opts · f00db0c3
    Christian Couder authored
    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
    f00db0c3
push_options.rb 2.12 KB