Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion tools/automator/automator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,15 @@ merge() {
git -c "user.name=$user" -c "user.email=$email" merge --no-ff -m "$title" --log upstream/"$merge_branch"
local code=$?
if [ "$code" -ne 0 ]; then
print_error "$(git status)" 1
export GITHUB_TOKEN="$token"
local issue_exists
issue_exists=$(gh issue list -S "Automatic merge of $merge_branch into $branch failed." -R "istio/isio" | wc -l)
if [ "$issue_exists" -eq 0 ]; then
gh issue create -b "Automatic merge of $merge_branch into $branch failed. @istio/wg-networking-maintainers" -t "Automatic merge of upstream envoy release branch failed" -l "area/networking/envoy" -R "istio/istio"
print_error "Conflicts detected, manual merge is required. An issue in istio/istio has been created." 0
else
print_error "Conflicts detected, manual merge is required. An issue in istio/istio already exists." 0
fi
else
if [[ "$(git show --shortstat)" =~ $title ]]; then
git show --shortstat
Expand Down