Documentation
¶
Index ¶
- type MockPullContext
- func (c *MockPullContext) BaseOwner() string
- func (c *MockPullContext) BaseRef() string
- func (c *MockPullContext) BaseRepo() string
- func (c *MockPullContext) Body() string
- func (c *MockPullContext) Branches() (base string, head string)
- func (c *MockPullContext) Comments(ctx context.Context) ([]string, error)
- func (c *MockPullContext) Commits(ctx context.Context) ([]*pull.Commit, error)
- func (c *MockPullContext) CurrentStatuses(ctx context.Context) ([]string, map[string]string, error)
- func (c *MockPullContext) IsDraft() bool
- func (c *MockPullContext) IsTargeted(ctx context.Context) (bool, error)
- func (c *MockPullContext) Labels(ctx context.Context) ([]string, error)
- func (c *MockPullContext) Locator() string
- func (c *MockPullContext) MergeState(ctx context.Context) (*pull.MergeState, error)
- func (c *MockPullContext) Number() int
- func (c *MockPullContext) Owner() string
- func (c *MockPullContext) PullRequestsForBranch(ctx context.Context) ([]*github.PullRequest, error)
- func (c *MockPullContext) PushRestrictions(ctx context.Context) (bool, error)
- func (c *MockPullContext) Repo() string
- func (c *MockPullContext) RequiredStatuses(ctx context.Context) ([]string, error)
- func (c *MockPullContext) Title() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockPullContext ¶
type MockPullContext struct {
OwnerValue string
RepoValue string
NumberValue int
BaseOwnerValue string
BaseRepoValue string
BaseRefValue string
TitleValue string
BodyValue string
LocatorValue string
BranchBase string
BranchName string
MergeStateValue *pull.MergeState
MergeStateErrValue error
LabelValue []string
LabelErrValue error
CommentValue []string
CommentErrValue error
CommitsValue []*pull.Commit
CommitsErrValue error
RequiredStatusesValue []string
RequiredStatusesErrValue error
PushRestrictionsValue bool
PushRestrictionsErrValue error
SuccessStatusesValue []string
FailureStatusesValue map[string]string
StatusesErrValue error
IsTargetedValue bool
IsTargetedErrValue error
IsDraftValue bool
PullRequestsForBranchValue []*github.PullRequest
PullRequestsForBranchErrValue error
}
MockPullContext is a dummy Context implementation.
func (*MockPullContext) BaseOwner ¶
func (c *MockPullContext) BaseOwner() string
func (*MockPullContext) BaseRef ¶
func (c *MockPullContext) BaseRef() string
func (*MockPullContext) BaseRepo ¶
func (c *MockPullContext) BaseRepo() string
func (*MockPullContext) Body ¶
func (c *MockPullContext) Body() string
func (*MockPullContext) Branches ¶
func (c *MockPullContext) Branches() (base string, head string)
func (*MockPullContext) Comments ¶
func (c *MockPullContext) Comments(ctx context.Context) ([]string, error)
func (*MockPullContext) CurrentStatuses ¶
func (*MockPullContext) IsDraft ¶
func (c *MockPullContext) IsDraft() bool
func (*MockPullContext) IsTargeted ¶
func (c *MockPullContext) IsTargeted(ctx context.Context) (bool, error)
func (*MockPullContext) Labels ¶
func (c *MockPullContext) Labels(ctx context.Context) ([]string, error)
func (*MockPullContext) Locator ¶
func (c *MockPullContext) Locator() string
func (*MockPullContext) MergeState ¶
func (c *MockPullContext) MergeState(ctx context.Context) (*pull.MergeState, error)
func (*MockPullContext) Number ¶
func (c *MockPullContext) Number() int
func (*MockPullContext) Owner ¶
func (c *MockPullContext) Owner() string
func (*MockPullContext) PullRequestsForBranch ¶
func (c *MockPullContext) PullRequestsForBranch(ctx context.Context) ([]*github.PullRequest, error)
func (*MockPullContext) PushRestrictions ¶
func (c *MockPullContext) PushRestrictions(ctx context.Context) (bool, error)
func (*MockPullContext) Repo ¶
func (c *MockPullContext) Repo() string
func (*MockPullContext) RequiredStatuses ¶
func (c *MockPullContext) RequiredStatuses(ctx context.Context) ([]string, error)
func (*MockPullContext) Title ¶
func (c *MockPullContext) Title() string
Click to show internal directories.
Click to hide internal directories.