Documentation
¶
Index ¶
- type PluginAction
- type PluginFilter
- type Registry
- type Task
- type Wrapper
- func (tw *Wrapper) Actions() []action.Action
- func (tw *Wrapper) AddFilters(f ...filter.Filter)
- func (tw *Wrapper) AutoMergeAfter() time.Duration
- func (tw *Wrapper) BranchName() string
- func (tw *Wrapper) Checksum() string
- func (tw *Wrapper) Filters() []filter.Filter
- func (tw *Wrapper) HasReachMaxOpenPRs() bool
- func (tw *Wrapper) HasReachedChangeLimit() bool
- func (tw *Wrapper) IncChangeLimitCount()
- func (tw *Wrapper) IncOpenPRsCount()
- func (tw *Wrapper) OnPrClosed(repository host.Repository) error
- func (tw *Wrapper) OnPrCreated(repository host.Repository) error
- func (tw *Wrapper) OnPrMerged(repository host.Repository) error
- func (tw *Wrapper) PrTitle() string
- func (tw *Wrapper) SetLogger(l *zap.SugaredLogger)
- func (tw *Wrapper) SourceTask() schema.Task
- func (tw *Wrapper) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PluginAction ¶
PluginAction wraps remote actions provided by a plugin.
func (*PluginAction) Apply ¶
func (a *PluginAction) Apply(ctx context.Context) error
Apply implements action.Apply().
func (*PluginAction) String ¶
func (a *PluginAction) String() string
Apply implements action.String().
type PluginFilter ¶
PluginFilter wraps remote filters provided by a plugin.
func (*PluginFilter) Do ¶
func (f *PluginFilter) Do(ctx context.Context) (bool, error)
Do implements filter.Do().
func (*PluginFilter) String ¶
func (f *PluginFilter) String() string
String implements filter.String().
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.
type Task ¶
type Task interface { Actions() []action.Action AutoMergeAfter() time.Duration BranchName() string Checksum() string Filters() []filter.Filter HasReachedChangeLimit() bool HasReachMaxOpenPRs() bool IncChangeLimitCount() IncOpenPRsCount() OnPrClosed(host.Repository) error OnPrCreated(host.Repository) error OnPrMerged(host.Repository) error PrTitle() string SetLogger(*zap.SugaredLogger) SourceTask() schema.Task Stop() }
type Wrapper ¶
func (*Wrapper) AddFilters ¶ added in v0.6.0
func (*Wrapper) AutoMergeAfter ¶
func (*Wrapper) BranchName ¶
func (*Wrapper) HasReachMaxOpenPRs ¶ added in v0.5.0
func (*Wrapper) HasReachedChangeLimit ¶ added in v0.5.0
func (*Wrapper) IncChangeLimitCount ¶ added in v0.5.0
func (tw *Wrapper) IncChangeLimitCount()
func (*Wrapper) IncOpenPRsCount ¶ added in v0.5.0
func (tw *Wrapper) IncOpenPRsCount()
func (*Wrapper) OnPrClosed ¶
func (tw *Wrapper) OnPrClosed(repository host.Repository) error
func (*Wrapper) OnPrCreated ¶
func (tw *Wrapper) OnPrCreated(repository host.Repository) error
func (*Wrapper) OnPrMerged ¶
func (tw *Wrapper) OnPrMerged(repository host.Repository) error
func (*Wrapper) SetLogger ¶ added in v0.11.0
func (tw *Wrapper) SetLogger(l *zap.SugaredLogger)
func (*Wrapper) SourceTask ¶
Click to show internal directories.
Click to hide internal directories.