plugins

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 8, 2022 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLabelColor

func GetLabelColor(labelAndColor string) string

func GetLabelName

func GetLabelName(labelAndColor string) string

Types

type CommentPlugin

type CommentPlugin interface {
	// CommentBuildLink 评论drone build链接
	CommentBuildLink() error
}

func NewCommentPlugin

func NewCommentPlugin(config config.Config, client *provider.Client) CommentPlugin

type LabelPlugin

type LabelPlugin interface {
	// UpdatePullRequestStatusLabel 更新pull request的构建状态标签
	UpdatePullRequestStatusLabel(name, color string) error
}

func NewLabelPlugin

func NewLabelPlugin(config config.Config, client *provider.Client, labels []string) LabelPlugin

type Plugin

type Plugin interface {
	Exec() error
}

func NewPlugin

func NewPlugin(config config.Config) Plugin

type TestPlugin

type TestPlugin interface {
	// PushTestResult 推送测试结果
	PushTestResult() error
}

func NewTestPlugin

func NewTestPlugin(config config.Config, client *provider.Client) TestPlugin

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL