diff --git a/.github/backport.sh b/.github/backport.sh index e9deb025..4661bc0a 100755 --- a/.github/backport.sh +++ b/.github/backport.sh @@ -137,3 +137,6 @@ gh pr create \ # The backport now exists, so drop the label that flagged this PR for one. gh pr edit "$PR_NUMBER" --remove-label needs-backport + +# Switch back to the original branch we were on before doing the backport +git checkout -