From 481f88e330376b14008147f3a6b07b5138d7c8d3 Mon Sep 17 00:00:00 2001 From: Miguel Angel Reina Ortega <miguelangel.reinaortega@etsi.org> Date: Tue, 5 Nov 2024 10:16:30 +0100 Subject: [PATCH] Adding color to the labels for conflicting merge requests --- checking_conflicts.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/checking_conflicts.sh b/checking_conflicts.sh index 5bfc211..b0cf26c 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}" \ -- GitLab