Skip to content

Commit

Permalink
delete the branches after successful merge (#37)
Browse files Browse the repository at this point in the history
This would help in the scenario where the source code is a commit "roll back" and not a revert commit. w/o this, the original branch with SHA will still exist and thus won't create a new PR
  • Loading branch information
domdepasquale authored Aug 30, 2023
1 parent 8c4ca88 commit 1f8d2da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commit-and-pull-request.sh
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ if [[ "${PROMOTION_METHOD}" == "pull_request" ]]; then
echo
if [[ "${AUTO_MERGE}" == "true" ]]; then
echo "Status checks have all passed. Merging PR..."
gh pr merge --squash --admin
gh pr merge --squash --admin --delete-branch
echo
echo "Promotion PR has been merged. Details below."
else
Expand Down

0 comments on commit 1f8d2da

Please sign in to comment.