module

package
v0.0.0-...-6f3f36d Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

README

module

根据 Pull Request 的修改的文件自动加上 module/ 前缀的标签。

cmd

无。

extra

参考配置:

{
    "extra": {
        "label_prefix": "module",
        "file_prefix_map": {
            "dev/foo/": "foo",
            "dev/bar/": "bar",
            "": "all"
        }
    }
}

上述配置表示根据文件前缀的匹配,会加上 module/ 开头的标签。

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PluginName = "module"
)

Functions

func NewModulePlugin

func NewModulePlugin(cli client.ClientInterface, notifier notify.NotifyInterface, options plugin.PluginOptions) (plugin.Plugin, error)

Types

type Extra

type Extra struct {
	LablePrefix        string            `json:"label_prefix"`
	EnableCommentRoles []string          `json:"enable_comment_roles"`
	FilePrefixMap      map[string]string `json:"file_prefix_map"`
	// contains filtered or unexported fields
}

func (*Extra) Complete

func (ex *Extra) Complete()

type ModuleMap

type ModuleMap struct {
	Prefix string
	Module string
}

type ModulePlugin

type ModulePlugin struct {
	*plugin.BasePlugin
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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