Skip to content

Commit 0feb7bb

Browse files
committed
close #75 suggestion checkout master after git phlow deliver
1 parent 3b7a9f1 commit 0feb7bb

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

ci/notes/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ We have enhanced the phlow so it's better to use it when building pipelines supp
44

55
#### Features
66
- upnext now has a prefix option #79 @groenborg
7+
- deliver now always change back to your default branch #75 @groenborg
78

phlow/deliver.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@ func Deliver(defaultBranch string) {
3737
fmt.Println(err)
3838
return
3939
}
40+
41+
githandler.CheckOut(defaultBranch)
42+
if err != nil {
43+
fmt.Printf("chould not switch to branch %s \n", defaultBranch)
44+
return
45+
}
46+
4047
fmt.Printf("Branch %s is now delivered \n", ui.Format.Branch(branchInfo.Current))
4148
}
4249

0 commit comments

Comments
 (0)