Skip to content

Commit 4c7d363

Browse files
committed
Add CheckoutBranch and Merge helpers for integration tests
1 parent 41f86f6 commit 4c7d363

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/integration/components/shell.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ func (s *Shell) Checkout(name string) *Shell {
6363
return s.RunCommand("git checkout " + name)
6464
}
6565

66+
func (s *Shell) Merge(name string) *Shell {
67+
return s.RunCommand("git merge --commit " + name)
68+
}
69+
6670
func (s *Shell) GitAdd(path string) *Shell {
6771
return s.RunCommand(fmt.Sprintf("git add \"%s\"", path))
6872
}

0 commit comments

Comments
 (0)