feat: log prefix and enhance handling for branch creation
This commit is contained in:
parent
c4cf4aa33e
commit
1b936d8431
5
main.go
5
main.go
@ -116,9 +116,14 @@ func main() {
|
||||
} else {
|
||||
// Create and push the branch
|
||||
originBranch := "origin/develop"
|
||||
|
||||
logger.Printf("Prefix is : %s", prefix)
|
||||
if prefix == "hotfix" {
|
||||
originBranch = "origin/main"
|
||||
} else {
|
||||
logger.Printf("hotfix != %s", prefix)
|
||||
}
|
||||
|
||||
logger.Printf("Creating branch '%s' from '%s'.\n", branchName, originBranch)
|
||||
err = runCommand(logger, "git", "checkout", "-b", branchName, originBranch)
|
||||
if err != nil {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user