Documentation
¶
Index ¶
- type Registry
- type Task
- func (tw *Task) Actions() []action.Action
- func (tw *Task) AddFilters(f ...filter.Filter)
- func (tw *Task) CalcAutoMergeAfter() time.Duration
- func (tw *Task) Checksum() string
- func (tw *Task) Filters() []filter.Filter
- func (tw *Task) HasReachMaxOpenPRs() bool
- func (tw *Task) HasReachedChangeLimit() bool
- func (tw *Task) IncChangeLimitCount()
- func (tw *Task) IncOpenPRsCount()
- func (tw *Task) IsWithinSchedule() bool
- 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) RenderBranchName(data template.Data) (string, error)
- func (tw *Task) RenderPrTitle(data template.Data) (string, error)
- func (tw *Task) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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) AddFilters ¶ added in v0.12.0
func (*Task) CalcAutoMergeAfter ¶ added in v0.12.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) IsWithinSchedule ¶ added in v0.12.0
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.