Update roles/home/scripts/commits.sh

This commit is contained in:
Giulio De Pasquale 2024-12-04 11:34:05 +00:00
parent b0080ad5e9
commit 91d7bcbab1

View File

@ -26,6 +26,8 @@ create_pr_from_files() {
local commit_message="" local commit_message=""
local new_branch="pr-$(date +%Y%m%d%H%M%S)" local new_branch="pr-$(date +%Y%m%d%H%M%S)"
git checkout "${origin_branch}"
git checkout -b "$new_branch" git checkout -b "$new_branch"
git add "${files[@]}" git add "${files[@]}"