processor

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2025 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Processor

type Processor struct {
	DataDir string
	Git     git.GitClient
}

func (*Processor) Process

func (p *Processor) Process(
	ctx context.Context,
	dryRun bool,
	repo host.Repository,
	task *task.Task,
	doFilter bool,
) (Result, *host.PullRequest, error)

type RepositoryTaskProcessor

type RepositoryTaskProcessor interface {
	Process(ctx context.Context, dryRun bool, repo host.Repository, task *task.Task, doFilter bool) (Result, *host.PullRequest, error)
}

type Result

type Result int
const (
	ResultUnknown Result = iota
	ResultAutoMergeTooEarly
	ResultBranchModified
	ResultChecksFailed
	ResultConflict
	ResultNoChanges
	ResultPrCreated
	ResultPrClosedBefore
	ResultPrClosed
	ResultPrMergedBefore
	ResultPrMerged
	ResultPrOpen
	ResultNoMatch
	ResultSkip
)

func (Result) String

func (i Result) String() string

Jump to

Keyboard shortcuts

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