Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
...@@ -86,6 +86,13 @@ echo "${merge_requests}" | jq -c '.[]' | while read mr; do ...@@ -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}" \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment