File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,9 +17,11 @@ if [[ -s /tmp/changes.patch ]] ; then
1717 git config --global user.name $USER
1818 git fetch
1919
20+ echo " INFO : linting $base_branch_name ."
21+
2022 # If current branch is the patch branch, just push
2123 if [[ " $base_branch_name " == * " yamlfixer/patch" * ]]; then
22- echo " INFO : PR already exists, and currently working on the branch. Rebase with remote branch and push"
24+ echo " INFO : currently working on the patch branch $base_branch_name . Rebase with remote branch and push"
2325 git pull --rebase
2426 patch -p0 < /tmp/changes.patch
2527 git commit -a -m ' Yamlfixer : fix yaml files'
@@ -28,11 +30,11 @@ if [[ -s /tmp/changes.patch ]] ; then
2830 # Check if a remote patch branch exists for the current branch
2931 remote_branch_exists=$( git ls-remote --heads origin $patch_branch_name )
3032 if [[ -n " $remote_branch_exists " ]]; then
31- echo " INFO : branch already exists, just merge and push"
33+ echo " INFO : patch branch $patch_branch_name already exists, just merge and push"
3234 git checkout $patch_branch_name
3335 git pull --rebase
3436 else
35- echo " INFO : branch not found, create a new branch and push fixes." ;
37+ echo " INFO : patch branch not found, create a new patch branch $patch_branch_name and push fixes." ;
3638 git checkout -b $patch_branch_name
3739 fi
3840
You can’t perform that action at this time.
0 commit comments