Documentation
¶
Index ¶
- Constants
- type API
- type ApprovalMessage
- type ErrorMessage
- type MockAPI
- func (_m *MockAPI) AddReview(ctx context.Context, _a1 id.PR, summary string, event string) error
- func (_m *MockAPI) DismissReview(ctx context.Context, _a1 id.PR, reviewID int64, message string) error
- func (_m *MockAPI) EXPECT() *MockAPI_Expecter
- func (_m *MockAPI) EnableAutoMerge(ctx context.Context, _a1 id.PR, method githubv4.PullRequestMergeMethod) error
- func (_m *MockAPI) GetBranchProtection(ctx context.Context, _a1 id.PR, branch string) (*v50github.Protection, error)
- func (_m *MockAPI) GetOrganization(ctx context.Context, _a1 id.PR) (*v50github.Organization, error)
- func (_m *MockAPI) GetPullRequest(ctx context.Context, _a1 id.PR) (*v50github.PullRequest, error)
- func (_m *MockAPI) GetRepository(ctx context.Context, _a1 id.PR) (*v50github.Repository, error)
- func (_m *MockAPI) IssueComment(ctx context.Context, _a1 id.PR, comment string) error
- func (_m *MockAPI) IssueCommentForError(ctx context.Context, _a1 id.PR, err errors.APIError) error
- func (_m *MockAPI) ListAllTopics(ctx context.Context, _a1 id.PR) ([]string, error)
- func (_m *MockAPI) ListFilesChangedInPR(ctx context.Context, _a1 id.PR) ([]*v50github.CommitFile, error)
- func (_m *MockAPI) ListFilesInRootDir(ctx context.Context, _a1 id.PR, branch string) ([]string, error)
- func (_m *MockAPI) ListNamesOfFilesChangedInPR(ctx context.Context, _a1 id.PR) ([]string, error)
- func (_m *MockAPI) ListRequiredStatusChecks(ctx context.Context, _a1 id.PR, branch string) ([]string, error)
- func (_m *MockAPI) ListReviews(ctx context.Context, _a1 id.PR) ([]*v50github.PullRequestReview, error)
- type MockAPI_AddReview_Call
- func (_c *MockAPI_AddReview_Call) Return(_a0 error) *MockAPI_AddReview_Call
- func (_c *MockAPI_AddReview_Call) Run(run func(ctx context.Context, _a1 id.PR, summary string, event string)) *MockAPI_AddReview_Call
- func (_c *MockAPI_AddReview_Call) RunAndReturn(run func(context.Context, id.PR, string, string) error) *MockAPI_AddReview_Call
- type MockAPI_EnableAutoMerge_Call
- func (_c *MockAPI_EnableAutoMerge_Call) Return(_a0 error) *MockAPI_EnableAutoMerge_Call
- func (_c *MockAPI_EnableAutoMerge_Call) Run(...) *MockAPI_EnableAutoMerge_Call
- func (_c *MockAPI_EnableAutoMerge_Call) RunAndReturn(run func(context.Context, id.PR, githubv4.PullRequestMergeMethod) error) *MockAPI_EnableAutoMerge_Call
- type MockAPI_Expecter
- func (_e *MockAPI_Expecter) AddReview(ctx interface{}, _a1 interface{}, summary interface{}, event interface{}) *MockAPI_AddReview_Call
- func (_e *MockAPI_Expecter) EnableAutoMerge(ctx interface{}, _a1 interface{}, method interface{}) *MockAPI_EnableAutoMerge_Call
- func (_e *MockAPI_Expecter) GetBranchProtection(ctx interface{}, _a1 interface{}, branch interface{}) *MockAPI_GetBranchProtection_Call
- func (_e *MockAPI_Expecter) GetOrganization(ctx interface{}, _a1 interface{}) *MockAPI_GetOrganization_Call
- func (_e *MockAPI_Expecter) GetPullRequest(ctx interface{}, _a1 interface{}) *MockAPI_GetPullRequest_Call
- func (_e *MockAPI_Expecter) GetRepository(ctx interface{}, _a1 interface{}) *MockAPI_GetRepository_Call
- func (_e *MockAPI_Expecter) IssueComment(ctx interface{}, _a1 interface{}, comment interface{}) *MockAPI_IssueComment_Call
- func (_e *MockAPI_Expecter) IssueCommentForError(ctx interface{}, _a1 interface{}, err interface{}) *MockAPI_IssueCommentForError_Call
- func (_e *MockAPI_Expecter) ListAllTopics(ctx interface{}, _a1 interface{}) *MockAPI_ListAllTopics_Call
- func (_e *MockAPI_Expecter) ListFilesChangedInPR(ctx interface{}, _a1 interface{}) *MockAPI_ListFilesChangedInPR_Call
- func (_e *MockAPI_Expecter) ListFilesInRootDir(ctx interface{}, _a1 interface{}, branch interface{}) *MockAPI_ListFilesInRootDir_Call
- func (_e *MockAPI_Expecter) ListNamesOfFilesChangedInPR(ctx interface{}, _a1 interface{}) *MockAPI_ListNamesOfFilesChangedInPR_Call
- func (_e *MockAPI_Expecter) ListRequiredStatusChecks(ctx interface{}, _a1 interface{}, branch interface{}) *MockAPI_ListRequiredStatusChecks_Call
- func (_e *MockAPI_Expecter) ListReviews(ctx interface{}, _a1 interface{}) *MockAPI_ListReviews_Call
- type MockAPI_GetBranchProtection_Call
- func (_c *MockAPI_GetBranchProtection_Call) Return(_a0 *v50github.Protection, _a1 error) *MockAPI_GetBranchProtection_Call
- func (_c *MockAPI_GetBranchProtection_Call) Run(run func(ctx context.Context, _a1 id.PR, branch string)) *MockAPI_GetBranchProtection_Call
- func (_c *MockAPI_GetBranchProtection_Call) RunAndReturn(run func(context.Context, id.PR, string) (*v50github.Protection, error)) *MockAPI_GetBranchProtection_Call
- type MockAPI_GetOrganization_Call
- func (_c *MockAPI_GetOrganization_Call) Return(_a0 *v50github.Organization, _a1 error) *MockAPI_GetOrganization_Call
- func (_c *MockAPI_GetOrganization_Call) Run(run func(ctx context.Context, _a1 id.PR)) *MockAPI_GetOrganization_Call
- func (_c *MockAPI_GetOrganization_Call) RunAndReturn(run func(context.Context, id.PR) (*v50github.Organization, error)) *MockAPI_GetOrganization_Call
- type MockAPI_GetPullRequest_Call
- func (_c *MockAPI_GetPullRequest_Call) Return(_a0 *v50github.PullRequest, _a1 error) *MockAPI_GetPullRequest_Call
- func (_c *MockAPI_GetPullRequest_Call) Run(run func(ctx context.Context, _a1 id.PR)) *MockAPI_GetPullRequest_Call
- func (_c *MockAPI_GetPullRequest_Call) RunAndReturn(run func(context.Context, id.PR) (*v50github.PullRequest, error)) *MockAPI_GetPullRequest_Call
- type MockAPI_GetRepository_Call
- func (_c *MockAPI_GetRepository_Call) Return(_a0 *v50github.Repository, _a1 error) *MockAPI_GetRepository_Call
- func (_c *MockAPI_GetRepository_Call) Run(run func(ctx context.Context, _a1 id.PR)) *MockAPI_GetRepository_Call
- func (_c *MockAPI_GetRepository_Call) RunAndReturn(run func(context.Context, id.PR) (*v50github.Repository, error)) *MockAPI_GetRepository_Call
- type MockAPI_IssueCommentForError_Call
- func (_c *MockAPI_IssueCommentForError_Call) Return(_a0 error) *MockAPI_IssueCommentForError_Call
- func (_c *MockAPI_IssueCommentForError_Call) Run(run func(ctx context.Context, _a1 id.PR, err errors.APIError)) *MockAPI_IssueCommentForError_Call
- func (_c *MockAPI_IssueCommentForError_Call) RunAndReturn(run func(context.Context, id.PR, errors.APIError) error) *MockAPI_IssueCommentForError_Call
- type MockAPI_IssueComment_Call
- func (_c *MockAPI_IssueComment_Call) Return(_a0 error) *MockAPI_IssueComment_Call
- func (_c *MockAPI_IssueComment_Call) Run(run func(ctx context.Context, _a1 id.PR, comment string)) *MockAPI_IssueComment_Call
- func (_c *MockAPI_IssueComment_Call) RunAndReturn(run func(context.Context, id.PR, string) error) *MockAPI_IssueComment_Call
- type MockAPI_ListAllTopics_Call
- func (_c *MockAPI_ListAllTopics_Call) Return(_a0 []string, _a1 error) *MockAPI_ListAllTopics_Call
- func (_c *MockAPI_ListAllTopics_Call) Run(run func(ctx context.Context, _a1 id.PR)) *MockAPI_ListAllTopics_Call
- func (_c *MockAPI_ListAllTopics_Call) RunAndReturn(run func(context.Context, id.PR) ([]string, error)) *MockAPI_ListAllTopics_Call
- type MockAPI_ListFilesChangedInPR_Call
- func (_c *MockAPI_ListFilesChangedInPR_Call) Return(_a0 []*v50github.CommitFile, _a1 error) *MockAPI_ListFilesChangedInPR_Call
- func (_c *MockAPI_ListFilesChangedInPR_Call) Run(run func(ctx context.Context, _a1 id.PR)) *MockAPI_ListFilesChangedInPR_Call
- func (_c *MockAPI_ListFilesChangedInPR_Call) RunAndReturn(run func(context.Context, id.PR) ([]*v50github.CommitFile, error)) *MockAPI_ListFilesChangedInPR_Call
- type MockAPI_ListFilesInRootDir_Call
- func (_c *MockAPI_ListFilesInRootDir_Call) Return(_a0 []string, _a1 error) *MockAPI_ListFilesInRootDir_Call
- func (_c *MockAPI_ListFilesInRootDir_Call) Run(run func(ctx context.Context, _a1 id.PR, branch string)) *MockAPI_ListFilesInRootDir_Call
- func (_c *MockAPI_ListFilesInRootDir_Call) RunAndReturn(run func(context.Context, id.PR, string) ([]string, error)) *MockAPI_ListFilesInRootDir_Call
- type MockAPI_ListNamesOfFilesChangedInPR_Call
- func (_c *MockAPI_ListNamesOfFilesChangedInPR_Call) Return(_a0 []string, _a1 error) *MockAPI_ListNamesOfFilesChangedInPR_Call
- func (_c *MockAPI_ListNamesOfFilesChangedInPR_Call) Run(run func(ctx context.Context, _a1 id.PR)) *MockAPI_ListNamesOfFilesChangedInPR_Call
- func (_c *MockAPI_ListNamesOfFilesChangedInPR_Call) RunAndReturn(run func(context.Context, id.PR) ([]string, error)) *MockAPI_ListNamesOfFilesChangedInPR_Call
- type MockAPI_ListRequiredStatusChecks_Call
- func (_c *MockAPI_ListRequiredStatusChecks_Call) Return(_a0 []string, _a1 error) *MockAPI_ListRequiredStatusChecks_Call
- func (_c *MockAPI_ListRequiredStatusChecks_Call) Run(run func(ctx context.Context, _a1 id.PR, branch string)) *MockAPI_ListRequiredStatusChecks_Call
- func (_c *MockAPI_ListRequiredStatusChecks_Call) RunAndReturn(run func(context.Context, id.PR, string) ([]string, error)) *MockAPI_ListRequiredStatusChecks_Call
- type MockAPI_ListReviews_Call
- func (_c *MockAPI_ListReviews_Call) Return(_a0 []*v50github.PullRequestReview, _a1 error) *MockAPI_ListReviews_Call
- func (_c *MockAPI_ListReviews_Call) Run(run func(ctx context.Context, _a1 id.PR)) *MockAPI_ListReviews_Call
- func (_c *MockAPI_ListReviews_Call) RunAndReturn(run func(context.Context, id.PR) ([]*v50github.PullRequestReview, error)) *MockAPI_ListReviews_Call
Constants ¶
const ( Approve = "APPROVE" RequestChanges = "REQUEST_CHANGES" Comment = "COMMENT" LGTM = "LGTM! :rocket: :tada: :100:" ApprovalTemplate = `` /* 133-byte string literal not displayed */ ErrorTemplate = ` <details> <summary>:warning: %v :warning: </summary> ~~~json %v ~~~ </details> ` )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API interface {
ListReviews(ctx context.Context, id id.PR) ([]*github.PullRequestReview, error)
AddReview(ctx context.Context, id id.PR, summary, event string) error
DismissReview(ctx context.Context, id id.PR, reviewID int64, message string) error
EnableAutoMerge(ctx context.Context, id id.PR, method githubv4.PullRequestMergeMethod) error
IssueComment(ctx context.Context, id id.PR, comment string) error
IssueCommentForError(ctx context.Context, id id.PR, err pe.APIError) error
ListAllTopics(ctx context.Context, id id.PR) ([]string, error)
ListRequiredStatusChecks(ctx context.Context, id id.PR, branch string) ([]string, error)
ListFilesInRootDir(ctx context.Context, id id.PR, branch string) ([]string, error)
ListFilesChangedInPR(ctx context.Context, id id.PR) ([]*github.CommitFile, error)
GetBranchProtection(ctx context.Context, id id.PR, branch string) (*github.Protection, error)
ListNamesOfFilesChangedInPR(ctx context.Context, id id.PR) ([]string, error)
GetPullRequest(ctx context.Context, id id.PR) (*github.PullRequest, error)
GetRepository(ctx context.Context, id id.PR) (*github.Repository, error)
GetOrganization(ctx context.Context, id id.PR) (*github.Organization, error)
}
type ApprovalMessage ¶
type ApprovalMessage struct {
RequestID string `json:"request_id"`
}
type ErrorMessage ¶
type MockAPI ¶
MockAPI is an autogenerated mock type for the API type
func NewMockAPI ¶
NewMockAPI creates a new instance of MockAPI. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockAPI) AddReview ¶
AddReview provides a mock function with given fields: ctx, _a1, summary, event
func (*MockAPI) DismissReview ¶
func (_m *MockAPI) DismissReview(ctx context.Context, _a1 id.PR, reviewID int64, message string) error
DismissReview provides a mock function with given fields: ctx, _a1, reviewID, message
func (*MockAPI) EXPECT ¶
func (_m *MockAPI) EXPECT() *MockAPI_Expecter
func (*MockAPI) EnableAutoMerge ¶
func (_m *MockAPI) EnableAutoMerge(ctx context.Context, _a1 id.PR, method githubv4.PullRequestMergeMethod) error
EnableAutoMerge provides a mock function with given fields: ctx, _a1, method
func (*MockAPI) GetBranchProtection ¶
func (_m *MockAPI) GetBranchProtection(ctx context.Context, _a1 id.PR, branch string) (*v50github.Protection, error)
GetBranchProtection provides a mock function with given fields: ctx, _a1, branch
func (*MockAPI) GetOrganization ¶
GetOrganization provides a mock function with given fields: ctx, _a1
func (*MockAPI) GetPullRequest ¶
GetPullRequest provides a mock function with given fields: ctx, _a1
func (*MockAPI) GetRepository ¶
GetRepository provides a mock function with given fields: ctx, _a1
func (*MockAPI) IssueComment ¶
IssueComment provides a mock function with given fields: ctx, _a1, comment
func (*MockAPI) IssueCommentForError ¶
IssueCommentForError provides a mock function with given fields: ctx, _a1, err
func (*MockAPI) ListAllTopics ¶
ListAllTopics provides a mock function with given fields: ctx, _a1
func (*MockAPI) ListFilesChangedInPR ¶
func (_m *MockAPI) ListFilesChangedInPR(ctx context.Context, _a1 id.PR) ([]*v50github.CommitFile, error)
ListFilesChangedInPR provides a mock function with given fields: ctx, _a1
func (*MockAPI) ListFilesInRootDir ¶
func (_m *MockAPI) ListFilesInRootDir(ctx context.Context, _a1 id.PR, branch string) ([]string, error)
ListFilesInRootDir provides a mock function with given fields: ctx, _a1, branch
func (*MockAPI) ListNamesOfFilesChangedInPR ¶
ListNamesOfFilesChangedInPR provides a mock function with given fields: ctx, _a1
func (*MockAPI) ListRequiredStatusChecks ¶
func (_m *MockAPI) ListRequiredStatusChecks(ctx context.Context, _a1 id.PR, branch string) ([]string, error)
ListRequiredStatusChecks provides a mock function with given fields: ctx, _a1, branch
func (*MockAPI) ListReviews ¶
func (_m *MockAPI) ListReviews(ctx context.Context, _a1 id.PR) ([]*v50github.PullRequestReview, error)
ListReviews provides a mock function with given fields: ctx, _a1
type MockAPI_AddReview_Call ¶
MockAPI_AddReview_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddReview'
func (*MockAPI_AddReview_Call) Return ¶
func (_c *MockAPI_AddReview_Call) Return(_a0 error) *MockAPI_AddReview_Call
func (*MockAPI_AddReview_Call) Run ¶
func (_c *MockAPI_AddReview_Call) Run(run func(ctx context.Context, _a1 id.PR, summary string, event string)) *MockAPI_AddReview_Call
func (*MockAPI_AddReview_Call) RunAndReturn ¶
func (_c *MockAPI_AddReview_Call) RunAndReturn(run func(context.Context, id.PR, string, string) error) *MockAPI_AddReview_Call
type MockAPI_EnableAutoMerge_Call ¶
MockAPI_EnableAutoMerge_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EnableAutoMerge'
func (*MockAPI_EnableAutoMerge_Call) Return ¶
func (_c *MockAPI_EnableAutoMerge_Call) Return(_a0 error) *MockAPI_EnableAutoMerge_Call
func (*MockAPI_EnableAutoMerge_Call) Run ¶
func (_c *MockAPI_EnableAutoMerge_Call) Run(run func(ctx context.Context, _a1 id.PR, method githubv4.PullRequestMergeMethod)) *MockAPI_EnableAutoMerge_Call
func (*MockAPI_EnableAutoMerge_Call) RunAndReturn ¶
func (_c *MockAPI_EnableAutoMerge_Call) RunAndReturn(run func(context.Context, id.PR, githubv4.PullRequestMergeMethod) error) *MockAPI_EnableAutoMerge_Call
type MockAPI_Expecter ¶
type MockAPI_Expecter struct {
// contains filtered or unexported fields
}
func (*MockAPI_Expecter) AddReview ¶
func (_e *MockAPI_Expecter) AddReview(ctx interface{}, _a1 interface{}, summary interface{}, event interface{}) *MockAPI_AddReview_Call
AddReview is a helper method to define mock.On call
- ctx context.Context
- _a1 id.PR
- summary string
- event string
func (*MockAPI_Expecter) EnableAutoMerge ¶
func (_e *MockAPI_Expecter) EnableAutoMerge(ctx interface{}, _a1 interface{}, method interface{}) *MockAPI_EnableAutoMerge_Call
EnableAutoMerge is a helper method to define mock.On call
- ctx context.Context
- _a1 id.PR
- method githubv4.PullRequestMergeMethod
func (*MockAPI_Expecter) GetBranchProtection ¶
func (_e *MockAPI_Expecter) GetBranchProtection(ctx interface{}, _a1 interface{}, branch interface{}) *MockAPI_GetBranchProtection_Call
GetBranchProtection is a helper method to define mock.On call
- ctx context.Context
- _a1 id.PR
- branch string
func (*MockAPI_Expecter) GetOrganization ¶
func (_e *MockAPI_Expecter) GetOrganization(ctx interface{}, _a1 interface{}) *MockAPI_GetOrganization_Call
GetOrganization is a helper method to define mock.On call
- ctx context.Context
- _a1 id.PR
func (*MockAPI_Expecter) GetPullRequest ¶
func (_e *MockAPI_Expecter) GetPullRequest(ctx interface{}, _a1 interface{}) *MockAPI_GetPullRequest_Call
GetPullRequest is a helper method to define mock.On call
- ctx context.Context
- _a1 id.PR
func (*MockAPI_Expecter) GetRepository ¶
func (_e *MockAPI_Expecter) GetRepository(ctx interface{}, _a1 interface{}) *MockAPI_GetRepository_Call
GetRepository is a helper method to define mock.On call
- ctx context.Context
- _a1 id.PR
func (*MockAPI_Expecter) IssueComment ¶
func (_e *MockAPI_Expecter) IssueComment(ctx interface{}, _a1 interface{}, comment interface{}) *MockAPI_IssueComment_Call
IssueComment is a helper method to define mock.On call
- ctx context.Context
- _a1 id.PR
- comment string
func (*MockAPI_Expecter) IssueCommentForError ¶
func (_e *MockAPI_Expecter) IssueCommentForError(ctx interface{}, _a1 interface{}, err interface{}) *MockAPI_IssueCommentForError_Call
IssueCommentForError is a helper method to define mock.On call
- ctx context.Context
- _a1 id.PR
- err errors.APIError
func (*MockAPI_Expecter) ListAllTopics ¶
func (_e *MockAPI_Expecter) ListAllTopics(ctx interface{}, _a1 interface{}) *MockAPI_ListAllTopics_Call
ListAllTopics is a helper method to define mock.On call
- ctx context.Context
- _a1 id.PR
func (*MockAPI_Expecter) ListFilesChangedInPR ¶
func (_e *MockAPI_Expecter) ListFilesChangedInPR(ctx interface{}, _a1 interface{}) *MockAPI_ListFilesChangedInPR_Call
ListFilesChangedInPR is a helper method to define mock.On call
- ctx context.Context
- _a1 id.PR
func (*MockAPI_Expecter) ListFilesInRootDir ¶
func (_e *MockAPI_Expecter) ListFilesInRootDir(ctx interface{}, _a1 interface{}, branch interface{}) *MockAPI_ListFilesInRootDir_Call
ListFilesInRootDir is a helper method to define mock.On call
- ctx context.Context
- _a1 id.PR
- branch string
func (*MockAPI_Expecter) ListNamesOfFilesChangedInPR ¶
func (_e *MockAPI_Expecter) ListNamesOfFilesChangedInPR(ctx interface{}, _a1 interface{}) *MockAPI_ListNamesOfFilesChangedInPR_Call
ListNamesOfFilesChangedInPR is a helper method to define mock.On call
- ctx context.Context
- _a1 id.PR
func (*MockAPI_Expecter) ListRequiredStatusChecks ¶
func (_e *MockAPI_Expecter) ListRequiredStatusChecks(ctx interface{}, _a1 interface{}, branch interface{}) *MockAPI_ListRequiredStatusChecks_Call
ListRequiredStatusChecks is a helper method to define mock.On call
- ctx context.Context
- _a1 id.PR
- branch string
func (*MockAPI_Expecter) ListReviews ¶
func (_e *MockAPI_Expecter) ListReviews(ctx interface{}, _a1 interface{}) *MockAPI_ListReviews_Call
ListReviews is a helper method to define mock.On call
- ctx context.Context
- _a1 id.PR
type MockAPI_GetBranchProtection_Call ¶
MockAPI_GetBranchProtection_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetBranchProtection'
func (*MockAPI_GetBranchProtection_Call) Return ¶
func (_c *MockAPI_GetBranchProtection_Call) Return(_a0 *v50github.Protection, _a1 error) *MockAPI_GetBranchProtection_Call
func (*MockAPI_GetBranchProtection_Call) Run ¶
func (_c *MockAPI_GetBranchProtection_Call) Run(run func(ctx context.Context, _a1 id.PR, branch string)) *MockAPI_GetBranchProtection_Call
func (*MockAPI_GetBranchProtection_Call) RunAndReturn ¶
func (_c *MockAPI_GetBranchProtection_Call) RunAndReturn(run func(context.Context, id.PR, string) (*v50github.Protection, error)) *MockAPI_GetBranchProtection_Call
type MockAPI_GetOrganization_Call ¶
MockAPI_GetOrganization_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetOrganization'
func (*MockAPI_GetOrganization_Call) Return ¶
func (_c *MockAPI_GetOrganization_Call) Return(_a0 *v50github.Organization, _a1 error) *MockAPI_GetOrganization_Call
func (*MockAPI_GetOrganization_Call) Run ¶
func (_c *MockAPI_GetOrganization_Call) Run(run func(ctx context.Context, _a1 id.PR)) *MockAPI_GetOrganization_Call
func (*MockAPI_GetOrganization_Call) RunAndReturn ¶
func (_c *MockAPI_GetOrganization_Call) RunAndReturn(run func(context.Context, id.PR) (*v50github.Organization, error)) *MockAPI_GetOrganization_Call
type MockAPI_GetPullRequest_Call ¶
MockAPI_GetPullRequest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPullRequest'
func (*MockAPI_GetPullRequest_Call) Return ¶
func (_c *MockAPI_GetPullRequest_Call) Return(_a0 *v50github.PullRequest, _a1 error) *MockAPI_GetPullRequest_Call
func (*MockAPI_GetPullRequest_Call) Run ¶
func (_c *MockAPI_GetPullRequest_Call) Run(run func(ctx context.Context, _a1 id.PR)) *MockAPI_GetPullRequest_Call
func (*MockAPI_GetPullRequest_Call) RunAndReturn ¶
func (_c *MockAPI_GetPullRequest_Call) RunAndReturn(run func(context.Context, id.PR) (*v50github.PullRequest, error)) *MockAPI_GetPullRequest_Call
type MockAPI_GetRepository_Call ¶
MockAPI_GetRepository_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRepository'
func (*MockAPI_GetRepository_Call) Return ¶
func (_c *MockAPI_GetRepository_Call) Return(_a0 *v50github.Repository, _a1 error) *MockAPI_GetRepository_Call
func (*MockAPI_GetRepository_Call) Run ¶
func (_c *MockAPI_GetRepository_Call) Run(run func(ctx context.Context, _a1 id.PR)) *MockAPI_GetRepository_Call
func (*MockAPI_GetRepository_Call) RunAndReturn ¶
func (_c *MockAPI_GetRepository_Call) RunAndReturn(run func(context.Context, id.PR) (*v50github.Repository, error)) *MockAPI_GetRepository_Call
type MockAPI_IssueCommentForError_Call ¶
MockAPI_IssueCommentForError_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IssueCommentForError'
func (*MockAPI_IssueCommentForError_Call) Return ¶
func (_c *MockAPI_IssueCommentForError_Call) Return(_a0 error) *MockAPI_IssueCommentForError_Call
func (*MockAPI_IssueCommentForError_Call) Run ¶
func (_c *MockAPI_IssueCommentForError_Call) Run(run func(ctx context.Context, _a1 id.PR, err errors.APIError)) *MockAPI_IssueCommentForError_Call
func (*MockAPI_IssueCommentForError_Call) RunAndReturn ¶
func (_c *MockAPI_IssueCommentForError_Call) RunAndReturn(run func(context.Context, id.PR, errors.APIError) error) *MockAPI_IssueCommentForError_Call
type MockAPI_IssueComment_Call ¶
MockAPI_IssueComment_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IssueComment'
func (*MockAPI_IssueComment_Call) Return ¶
func (_c *MockAPI_IssueComment_Call) Return(_a0 error) *MockAPI_IssueComment_Call
func (*MockAPI_IssueComment_Call) Run ¶
func (_c *MockAPI_IssueComment_Call) Run(run func(ctx context.Context, _a1 id.PR, comment string)) *MockAPI_IssueComment_Call
func (*MockAPI_IssueComment_Call) RunAndReturn ¶
func (_c *MockAPI_IssueComment_Call) RunAndReturn(run func(context.Context, id.PR, string) error) *MockAPI_IssueComment_Call
type MockAPI_ListAllTopics_Call ¶
MockAPI_ListAllTopics_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListAllTopics'
func (*MockAPI_ListAllTopics_Call) Return ¶
func (_c *MockAPI_ListAllTopics_Call) Return(_a0 []string, _a1 error) *MockAPI_ListAllTopics_Call
func (*MockAPI_ListAllTopics_Call) Run ¶
func (_c *MockAPI_ListAllTopics_Call) Run(run func(ctx context.Context, _a1 id.PR)) *MockAPI_ListAllTopics_Call
func (*MockAPI_ListAllTopics_Call) RunAndReturn ¶
func (_c *MockAPI_ListAllTopics_Call) RunAndReturn(run func(context.Context, id.PR) ([]string, error)) *MockAPI_ListAllTopics_Call
type MockAPI_ListFilesChangedInPR_Call ¶
MockAPI_ListFilesChangedInPR_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListFilesChangedInPR'
func (*MockAPI_ListFilesChangedInPR_Call) Return ¶
func (_c *MockAPI_ListFilesChangedInPR_Call) Return(_a0 []*v50github.CommitFile, _a1 error) *MockAPI_ListFilesChangedInPR_Call
func (*MockAPI_ListFilesChangedInPR_Call) Run ¶
func (_c *MockAPI_ListFilesChangedInPR_Call) Run(run func(ctx context.Context, _a1 id.PR)) *MockAPI_ListFilesChangedInPR_Call
func (*MockAPI_ListFilesChangedInPR_Call) RunAndReturn ¶
func (_c *MockAPI_ListFilesChangedInPR_Call) RunAndReturn(run func(context.Context, id.PR) ([]*v50github.CommitFile, error)) *MockAPI_ListFilesChangedInPR_Call
type MockAPI_ListFilesInRootDir_Call ¶
MockAPI_ListFilesInRootDir_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListFilesInRootDir'
func (*MockAPI_ListFilesInRootDir_Call) Return ¶
func (_c *MockAPI_ListFilesInRootDir_Call) Return(_a0 []string, _a1 error) *MockAPI_ListFilesInRootDir_Call
func (*MockAPI_ListFilesInRootDir_Call) Run ¶
func (_c *MockAPI_ListFilesInRootDir_Call) Run(run func(ctx context.Context, _a1 id.PR, branch string)) *MockAPI_ListFilesInRootDir_Call
func (*MockAPI_ListFilesInRootDir_Call) RunAndReturn ¶
func (_c *MockAPI_ListFilesInRootDir_Call) RunAndReturn(run func(context.Context, id.PR, string) ([]string, error)) *MockAPI_ListFilesInRootDir_Call
type MockAPI_ListNamesOfFilesChangedInPR_Call ¶
MockAPI_ListNamesOfFilesChangedInPR_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListNamesOfFilesChangedInPR'
func (*MockAPI_ListNamesOfFilesChangedInPR_Call) Return ¶
func (_c *MockAPI_ListNamesOfFilesChangedInPR_Call) Return(_a0 []string, _a1 error) *MockAPI_ListNamesOfFilesChangedInPR_Call
func (*MockAPI_ListNamesOfFilesChangedInPR_Call) Run ¶
func (_c *MockAPI_ListNamesOfFilesChangedInPR_Call) Run(run func(ctx context.Context, _a1 id.PR)) *MockAPI_ListNamesOfFilesChangedInPR_Call
func (*MockAPI_ListNamesOfFilesChangedInPR_Call) RunAndReturn ¶
func (_c *MockAPI_ListNamesOfFilesChangedInPR_Call) RunAndReturn(run func(context.Context, id.PR) ([]string, error)) *MockAPI_ListNamesOfFilesChangedInPR_Call
type MockAPI_ListRequiredStatusChecks_Call ¶
MockAPI_ListRequiredStatusChecks_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListRequiredStatusChecks'
func (*MockAPI_ListRequiredStatusChecks_Call) Return ¶
func (_c *MockAPI_ListRequiredStatusChecks_Call) Return(_a0 []string, _a1 error) *MockAPI_ListRequiredStatusChecks_Call
func (*MockAPI_ListRequiredStatusChecks_Call) Run ¶
func (_c *MockAPI_ListRequiredStatusChecks_Call) Run(run func(ctx context.Context, _a1 id.PR, branch string)) *MockAPI_ListRequiredStatusChecks_Call
func (*MockAPI_ListRequiredStatusChecks_Call) RunAndReturn ¶
func (_c *MockAPI_ListRequiredStatusChecks_Call) RunAndReturn(run func(context.Context, id.PR, string) ([]string, error)) *MockAPI_ListRequiredStatusChecks_Call
type MockAPI_ListReviews_Call ¶
MockAPI_ListReviews_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListReviews'
func (*MockAPI_ListReviews_Call) Return ¶
func (_c *MockAPI_ListReviews_Call) Return(_a0 []*v50github.PullRequestReview, _a1 error) *MockAPI_ListReviews_Call
func (*MockAPI_ListReviews_Call) Run ¶
func (_c *MockAPI_ListReviews_Call) Run(run func(ctx context.Context, _a1 id.PR)) *MockAPI_ListReviews_Call
func (*MockAPI_ListReviews_Call) RunAndReturn ¶
func (_c *MockAPI_ListReviews_Call) RunAndReturn(run func(context.Context, id.PR) ([]*v50github.PullRequestReview, error)) *MockAPI_ListReviews_Call