Documentation
¶
Index ¶
Constants ¶
View Source
const ConfigFileName = "tagger.config.json"
View Source
const SchemaURL = "https://raw.githubusercontent.com/AkaraChen/tagger/main/tagger.schema.json"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Schema string `json:"$schema,omitempty"`
GitHostingProvider GitHostingProvider `json:"gitHostingProvider"`
GitHub *GitHubConfig `json:"github,omitempty"`
}
Config 工具的配置文件结构
func (*Config) ShouldOpenActionPage ¶
ShouldOpenActionPage 判断是否应该打开 Action 页面 如果配置中没有指定,默认返回 true
type GitHostingProvider ¶
type GitHostingProvider string
GitHostingProvider 表示 Git 托管平台类型
const ( GitHub GitHostingProvider = "GitHub" Other GitHostingProvider = "Other" )
type GitHubConfig ¶
type GitHubConfig struct {
// 使用指针类型可以区分"未设置"和"false"
OpenActionPage *bool `json:"openActionPage,omitempty"`
}
GitHubConfig GitHub 平台的配置
Click to show internal directories.
Click to hide internal directories.