diff --git a/checking_conflicts.sh b/checking_conflicts.sh index 5bfc211025fc99db5ae973140c9726d9e18f162d..b0cf26c7cfc87855cf4eae09270bb2cfe1243b19 100644 --- a/checking_conflicts.sh +++ b/checking_conflicts.sh @@ -86,6 +86,13 @@ echo "${merge_requests}" | jq -c '.[]' | while read mr; do # Setting label to the merge request which is conflicting with 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 \ --silent \ --header "PRIVATE-TOKEN: ${10}" \