Skip to content

Commit

Permalink
Add CheckoutBranch and Merge helpers for integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mark2185 committed Sep 24, 2022
1 parent 41f86f6 commit 4c7d363
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/integration/components/shell.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ func (s *Shell) Checkout(name string) *Shell {
return s.RunCommand("git checkout " + name)
}

func (s *Shell) Merge(name string) *Shell {
return s.RunCommand("git merge --commit " + name)
}

func (s *Shell) GitAdd(path string) *Shell {
return s.RunCommand(fmt.Sprintf("git add \"%s\"", path))
}
Expand Down

0 comments on commit 4c7d363

Please sign in to comment.