Documentation
¶
Index ¶
- func ExecuteTaskAfterScript(f exec.Exec, logger *zap.SugaredLogger, t *task.Task, repo host.Repository, ...) error
- func ExecuteTaskScript(f exec.Exec, logger *zap.SugaredLogger, t *task.Task, repo host.Repository, ...) error
- func IsPrOpen(result Result) bool
- type ProcessResult
- type Processor
- type RepositoryTaskProcessor
- type Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecuteTaskAfterScript ¶ added in v0.49.0
func ExecuteTaskAfterScript( f exec.Exec, logger *zap.SugaredLogger, t *task.Task, repo host.Repository, dir string, scriptGen exec.ScriptGenerator, result Result, pr *host.PullRequest, ) error
func ExecuteTaskScript ¶ added in v0.49.0
func ExecuteTaskScript( f exec.Exec, logger *zap.SugaredLogger, t *task.Task, repo host.Repository, dir string, scriptGen exec.ScriptGenerator, ) error
ExecuteTaskScript executes the script of a task to modify the content of a repository. It sets up the environment for the script. It uses dir to set the current working directory of the script. Actual execution is done by f.
Types ¶
type ProcessResult ¶
type Processor ¶
type Processor struct {
Clock clock.Clock
DataDir string
Git git.GitClient
PullRequestCache host.PullRequestCache
CommandExec exec.Exec
ScriptGenerator exec.ScriptGenerator
}
func (*Processor) Process ¶
func (p *Processor) Process(dryRun bool, repo host.Repository, tasks []*task.Task, doFilter bool) []ProcessResult
type RepositoryTaskProcessor ¶
type RepositoryTaskProcessor interface {
Process(dryRun bool, repo host.Repository, tasks []*task.Task, doFilter bool) []ProcessResult
}
type Result ¶
type Result int
const ( ResultUnknown Result = iota ResultAutoMergeTooEarly ResultBranchModified ResultChecksFailed ResultConflict ResultNoChanges ResultPrCreated ResultPrClosedBefore ResultPrClosed ResultPrMergedBefore ResultPrMerged ResultPrOpen ResultNoMatch ResultSkip ResultPushedDefaultBranch ResultArchived // ResultMax is the highest value. // It has no meaning on its own // and is used to iterate over all result values. ResultMax )
Click to show internal directories.
Click to hide internal directories.