Versions in this module Expand all Collapse all v1 v1.0.0 May 9, 2019 Changes in this version + type CodeServiceMock struct + CommitsOnBranchAfterMock func(string, string) ([]*types.Commit, error) + CommitsOnBranchMock func(string, int) ([]*types.Commit, error) + CompareRefsMock func(string, string) ([]*types.Commit, error) + ParseWebhookForBranchMock func(r *http.Request) (string, error) + RevertMock func(sha1, branch string) error + func (m *CodeServiceMock) CommitsOnBranch(branch string, max int) ([]*types.Commit, error) + func (m *CodeServiceMock) CommitsOnBranchAfter(branch string, sha string) ([]*types.Commit, error) + func (m *CodeServiceMock) CompareRefs(oldRef, newRef string) ([]*types.Commit, error) + func (m *CodeServiceMock) ParseWebhookForBranch(r *http.Request) (string, error) + func (m *CodeServiceMock) Revert(sha1, branch string) error + type Service interface + CommitsOnBranch func(string, int) ([]*types.Commit, error) + CommitsOnBranchAfter func(string, string) ([]*types.Commit, error) + CompareRefs func(string, string) ([]*types.Commit, error) + ParseWebhookForBranch func(r *http.Request) (string, error) + Revert func(sha1, branch string) error + func GetService() Service