Loading checking_conflicts.sh +8 −0 Original line number Diff line number Diff line Loading @@ -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}" Loading Loading
checking_conflicts.sh +8 −0 Original line number Diff line number Diff line Loading @@ -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}" Loading