Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IssueLister ¶
type IssueLister struct{}
IssueLister provides issue items for operations to run on.
func (*IssueLister) ListItems ¶
func (r *IssueLister) ListItems(context *operations.Context, op operations.Operation, page int) ([]gh.Item, *github.Response, error)
ListItems returns a list of GitHub items for the specified operation to run on.
type Lister ¶
type Lister interface {
ListItems(context *operations.Context, op operations.Operation, page int) ([]gh.Item, *github.Response, error)
}
Lister provides items for operations to run on.
type OperationRunner ¶
type OperationRunner struct { // Config is the global settings for execution. Config *configuration.Config // GlobalFilters are the filters to apply in addition to the operation's specific filtering. GlobalFilters settings.Filters // Operation is the operation to execute. Operation operations.Operation }
OperationRunner is responsible for executing the Operation.
func NewOperationRunner ¶
func NewOperationRunner(config *configuration.Config, operation operations.Operation) *OperationRunner
NewOperationRunner returns an OperationRunner.
func NewOperationRunnerFromConfig ¶
func NewOperationRunnerFromConfig(config *configuration.Config, operationConfig *configuration.OperationConfiguration) (*OperationRunner, error)
NewOperationRunnerFromConfig returns an OperationRunner parsed from configuration.
func (*OperationRunner) Handle ¶
func (r *OperationRunner) Handle(item gh.Item) error
Handle applies the operation to a single GitHub item.
func (*OperationRunner) HandleStock ¶
func (r *OperationRunner) HandleStock() error
HandleStock applies the operation to the entire stock of GitHub items.
type PullRequestLister ¶
type PullRequestLister struct{}
PullRequestLister provides pull request items for operations to run on.
func (*PullRequestLister) ListItems ¶
func (r *PullRequestLister) ListItems(context *operations.Context, op operations.Operation, page int) ([]gh.Item, *github.Response, error)
ListItems returns a list of GitHub items for the specified operation to run on.