The code for the git_branch_delete_checked_out rule has the master branch hardcoded as what it should check out. This could be an issue if the repository does not have a master branch. You should dynamically determine the branch that should be used, maybe by using this or just getting a list of branches and choosing the first non-selected branch. master could still be a fallback if the steps fail.
The code for the
git_branch_delete_checked_out
rule has themaster
branch hardcoded as what it should check out. This could be an issue if the repository does not have a master branch. You should dynamically determine the branch that should be used, maybe by using this or just getting a list of branches and choosing the first non-selected branch. master could still be a fallback if the steps fail.