Skip to content

Commit 40dff86

Browse files
committed
[LTRM] Add deletion of remote PR branch
1 parent 9d61f02 commit 40dff86

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

lt_rebase_merge.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,15 @@ if [ $? -ne 0 ]; then
105105
exit 1
106106
fi
107107

108+
echo "Delete PR branch ${PR_BRANCH} locally and remotely"
109+
echo "git push origin :${PR_BRANCH}"
110+
git push origin :"${PR_BRANCH}"
111+
if [ $? -ne 0 ]; then
112+
echo "Failed to delete ${PR_BRANCH} remotely."
113+
exit 1
114+
fi
115+
116+
108117
echo "git branch -m $TARGET_BRANCH $PAST_VERSION_BRANCH"
109118
git branch -m $TARGET_BRANCH $PAST_VERSION_BRANCH
110119
if [ $? -ne 0 ]; then

0 commit comments

Comments
 (0)