Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( PluginName = "status" CmdStatus = "status" SupportTriggers = map[string]struct{}{ "pull_request/opened": struct{}{}, "pull_request/synchronize": struct{}{}, "pull_request/labeled": struct{}{}, "pull_request/unlabeled": struct{}{}, "pull_request_review/submitted/approved": struct{}{}, "pull_request_review/submitted/commented": struct{}{}, "pull_request_review/submitted/changes_requested": struct{}{}, } )
Functions ¶
func NewStatusPlugin ¶
func NewStatusPlugin(cli client.ClientInterface, notifier notify.NotifyInterface, options plugin.PluginOptions) (plugin.Plugin, error)
Types ¶
type Extra ¶
type Extra struct { // key should be in SupportTriggers EventsTrigger map[string][]LabelStatus `json:"events_trigger"` LabelPreconditions map[string][]config.Precondition `json:"label_precondition"` }
type LabelStatus ¶
type LabelStatus struct { Status string `json:"status"` Preconditions []config.Precondition `json:"preconditions"` }
type StatusPlugin ¶
type StatusPlugin struct { *plugin.BasePlugin // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.