Documentation
¶
Index ¶
- func Ptr[T any](t T) *T
- func ServePlugin(p Plugin)
- type BasePlugin
- func (p BasePlugin) Apply(ctx Context) error
- func (p BasePlugin) Filter(ctx Context) (bool, error)
- func (p BasePlugin) Init(config map[string]string) error
- func (p BasePlugin) OnPrClosed(ctx Context) error
- func (p BasePlugin) OnPrCreated(ctx Context) error
- func (p BasePlugin) OnPrMerged(ctx Context) error
- func (p BasePlugin) Priority() int32
- func (p BasePlugin) Shutdown() error
- type Context
- type Plugin
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ServePlugin ¶
func ServePlugin(p Plugin)
Types ¶
type BasePlugin ¶
type BasePlugin struct{}
func (BasePlugin) Apply ¶
func (p BasePlugin) Apply(ctx Context) error
func (BasePlugin) OnPrClosed ¶
func (p BasePlugin) OnPrClosed(ctx Context) error
func (BasePlugin) OnPrCreated ¶
func (p BasePlugin) OnPrCreated(ctx Context) error
func (BasePlugin) OnPrMerged ¶
func (p BasePlugin) OnPrMerged(ctx Context) error
func (BasePlugin) Priority ¶
func (p BasePlugin) Priority() int32
func (BasePlugin) Shutdown ¶ added in v0.6.0
func (p BasePlugin) Shutdown() error
Shutdown executes code to clean up data before the plugin shuts down. The function gets executed once, right before saturn-bot stops the plugin.
type Context ¶ added in v0.4.0
type Context struct {
*protocolv1.Context
}
Click to show internal directories.
Click to hide internal directories.