Skip to content
Snippets Groups Projects
Commit aedb3a75 authored by Miguel Angel Reina Ortega's avatar Miguel Angel Reina Ortega
Browse files

Adding more details to the conflict log file

parent 50219adb
No related branches found
No related tags found
No related merge requests found
Pipeline #1447 passed
......@@ -86,6 +86,14 @@ echo "${merge_requests}" | jq -c '.[]' | while read mr; do
result=$?
if [ ! $result == 0 ] ; then
echo "Merge request title: ${mr_title}, Merge Request ID: ${mr_id}" >> conflicting_merge_requests.txt
spec=$(git diff --name-only --diff-filter=U | grep -E "(TS|TR)")
sed -n '
/^<<<<<<< /,/^>>>>>>> / {
/^<<<<<<<\|^>>>>>>>/!{=;p}
/^>>>>>>> /a\
}
' ${spec} >> conflicting_merge_requests.txt
conflicting_merge_request_ids+=("${mr_id}")
# Setting label to the merge request which is conflicting with
echo "Setting label to the merge request which is conflicting with: ${mr_id}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment