Refactor merge-to-branch script to handle default branch name and merge to specified branch

This commit is contained in:
mr. M
2024-10-11 19:18:57 +02:00
parent 45e751a8be
commit 3a2ad6e578

View File

@@ -1,5 +1,7 @@
set -ex
actual_default_branch="central"
branch=zen-"$1"
default_branch="central"
@@ -11,4 +13,4 @@ git checkout "$branch"
git merge "$default_branch"
git push origin "$branch"
git checkout "$default_branch"
git checkout "$actual_default_branch"