runner

package
v0.0.0-...-ddb4624 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2016 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunOnEveryItem

func RunOnEveryItem(c *configuration.Config, op operations.Operation, runner Runner, filters settings.Filters) error

RunOnEveryItem runs the specified operation on all known items as provided by the specified runner.

func RunSingle

func RunSingle(c *configuration.Config, op operations.Operation, item gh.Item, filters settings.Filters) error

RunSingle runs the specified operations on a single GitHub item.

func RunSingleFromConfiguration

func RunSingleFromConfiguration(c *configuration.Config, operationConfig configuration.OperationConfiguration, item gh.Item) error

RunSingleFromConfiguration runs the operations as described by its configuration on a single GitHub item.

Types

type IssueRunner

type IssueRunner struct{}

IssueRunner provides issue items for operations to run on.

func (*IssueRunner) ListItems

func (r *IssueRunner) 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 PullRequestRunner

type PullRequestRunner struct{}

PullRequestRunner provides pull request items for operations to run on.

func (*PullRequestRunner) ListItems

func (r *PullRequestRunner) 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 Runner

type Runner interface {
	ListItems(context *operations.Context, op operations.Operation, page int) ([]gh.Item, *github.Response, error)
}

Runner provides items for operations to run on.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL