From 5ef4b698cb63c4b8658d710e71808650079cefbc Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Tue, 11 Oct 2022 19:54:35 +0400 Subject: [PATCH] Update PR merge script --- scripts/squash-merge.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/squash-merge.sh b/scripts/squash-merge.sh index 71b1868e8..edbf0a6bd 100755 --- a/scripts/squash-merge.sh +++ b/scripts/squash-merge.sh @@ -2,8 +2,6 @@ set -e -git reset --soft HEAD~$(git rev-list --count HEAD ^master) +current_branch=$(git branch --show-current) git checkout master -git add -A -git commit -m "$1" - +gh pr merge "$current_branch" -s -t "$1"