Pruning mentions from mirrored commit messages. (#446)

* Let's disable docker publishing

* Update merge-upstream-pull-request.sh
This commit is contained in:
Useroth
2020-09-14 01:07:43 +01:00
committed by GitHub
parent 79a32a11e4
commit a2c5d78d19
@@ -78,6 +78,8 @@ if echo "$CHERRY_PICK_OUTPUT" | grep -i 'error: mainline was specified but commi
# Add all files onto this branch
git add -A .
git -c core.editor=true cherry-pick --continue
# Prune any possible mentions from the commit message.
git commit -m "$(git -c core.editor=true log -1 --pretty=%B | sed 's/@/@ /g')" --amend
done
else
echo "Cherry-picking: $MERGE_SHA"
@@ -85,17 +87,24 @@ if echo "$CHERRY_PICK_OUTPUT" | grep -i 'error: mainline was specified but commi
# Add all files onto this branch
git add -A .
git -c core.editor=true cherry-pick --continue
# Prune any possible mentions from the commit message.
git commit -m "$(git -c core.editor=true log -1 --pretty=%B | sed 's/@/@ /g')" --amend
fi
else
# Add all files onto this branch
echo "Adding files to branch:"
git add -A .
# Prune any possible mentions from the commit message.
git commit -m "$(git -c core.editor=true log -1 --pretty=%B | sed 's/@/@ /g')" --amend
fi
# Commit these changes
echo "Commiting changes"
git -c core.editor=true commit --allow-empty -m "$2"
# Prune any possible mentions from the commit message.
git commit -m "$(git -c core.editor=true log -1 --pretty=%B | sed 's/@/@ /g')" --amend
# Push them onto the branch
echo "Pushing changes"
git push -u origin "$BASE_BRANCH_NAME$1"