Commit 481f88e3 authored by Miguel Angel Reina Ortega's avatar Miguel Angel Reina Ortega
Browse files

Adding color to the labels for conflicting merge requests

parent 99767e47
Loading
Loading
Loading
Loading
+7 −0
Original line number Original line Diff line number Diff line
@@ -86,6 +86,13 @@ echo "${merge_requests}" | jq -c '.[]' | while read mr; do
      # Setting label to the merge request which is conflicting with
      # Setting label to the merge request which is conflicting with
      echo "Setting label to the merge request which is conflicting with: ${mr_id}"
      echo "Setting label to the merge request which is conflicting with: ${mr_id}"


      #Creating label colored orange
      curl --request POST \
        --header "PRIVATE-TOKEN: ${10}" \
        --data "name=Conflict with merge request ${5}&color=#ed9121" \
        "${1}/projects/${2}/labels"

      #Assign label to the conflicting merge request
      curl --request PUT \
      curl --request PUT \
        --silent \
        --silent \
        --header "PRIVATE-TOKEN: ${10}" \
        --header "PRIVATE-TOKEN: ${10}" \