Documentation
¶
Index ¶
- func ValidateInputs(data map[string]string, t *Task) []error
- type Registry
- type Task
- func (tw *Task) Actions() []action.Action
- func (tw *Task) AddPreCloneFilters(f ...filter.Filter)
- func (tw *Task) CalcAutoMergeAfter() time.Duration
- func (tw *Task) Checksum() string
- func (tw *Task) FiltersPostClone() []filter.Filter
- func (tw *Task) FiltersPreClone() []filter.Filter
- func (tw *Task) HasFilters() bool
- func (tw *Task) HasReachMaxOpenPRs() bool
- func (tw *Task) HasReachedChangeLimit() bool
- func (tw *Task) IncChangeLimitCount()
- func (tw *Task) IncOpenPRsCount()
- func (tw *Task) InputData() map[string]string
- func (tw *Task) OnPrClosed(ctx context.Context) error
- func (tw *Task) OnPrCreated(ctx context.Context) error
- func (tw *Task) OnPrMerged(ctx context.Context) error
- func (tw *Task) Path() string
- func (tw *Task) RenderBranchName(data template.Data) (string, error)
- func (tw *Task) RenderPrTitle(data template.Data) (string, error)
- func (tw *Task) SetInputs(cliInputs map[string]string) error
- func (tw *Task) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry contains all tasks.
func NewRegistry ¶
func (*Registry) GetTasks ¶
GetTasks returns all tasks registered with the Registry. Should be called only after ReadAll() has been called at least once.
func (*Registry) ReadAll ¶
ReadAll takes a list of paths to task files and reads all tasks from the files.
type Task ¶
func (*Task) AddPreCloneFilters ¶ added in v0.18.0
func (*Task) CalcAutoMergeAfter ¶ added in v0.12.0
func (*Task) FiltersPostClone ¶ added in v0.18.0
func (*Task) FiltersPreClone ¶ added in v0.18.0
func (*Task) HasFilters ¶ added in v0.18.0
func (*Task) HasReachMaxOpenPRs ¶ added in v0.5.0
func (*Task) HasReachedChangeLimit ¶ added in v0.5.0
func (*Task) IncChangeLimitCount ¶ added in v0.5.0
func (tw *Task) IncChangeLimitCount()
func (*Task) IncOpenPRsCount ¶ added in v0.5.0
func (tw *Task) IncOpenPRsCount()
func (*Task) InputData ¶ added in v0.16.0
InputData returns a map where every key is an input defined by the task and every value is what has been set via the command-line for that key.
func (*Task) RenderBranchName ¶ added in v0.12.0
func (*Task) RenderPrTitle ¶ added in v0.12.0
Click to show internal directories.
Click to hide internal directories.