Documentation
¶
Index ¶
- type MockPullContext
- func (c *MockPullContext) AutoMerge(ctx context.Context) bool
- 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) CurrentSuccessStatuses(ctx context.Context) ([]string, error)
- func (c *MockPullContext) HeadSHA() string
- func (c *MockPullContext) IsDraft(ctx context.Context) 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) 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
TitleValue string
BodyValue string
HeadSHAValue 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
SuccessStatusesErrValue error
IsTargetedValue bool
IsTargetedErrValue error
IsDraftValue bool
AutoMergeValue bool
}
MockPullContext is a dummy Context implementation.
func (*MockPullContext) AutoMerge ¶ added in v1.16.0
func (c *MockPullContext) AutoMerge(ctx context.Context) bool
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) CurrentSuccessStatuses ¶
func (c *MockPullContext) CurrentSuccessStatuses(ctx context.Context) ([]string, error)
func (*MockPullContext) HeadSHA ¶
func (c *MockPullContext) HeadSHA() string
func (*MockPullContext) IsDraft ¶ added in v1.14.0
func (c *MockPullContext) IsDraft(ctx context.Context) 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) 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.