package
Version:
v0.5.0
Opens a new window with list of versions in this module.
Published: Jan 18, 2022
License: MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package config defines configuration scheme
type Config struct {
Base string `json:"base"`
GitLab GitLab `json:"gitlab"`
MR MR `json:"mr"`
Notifier Notifier `json:"notifier"`
Mentioner Mentioner `json:"mentioner"`
Hooks Hooks `json:"hooks"`
}
type GitLab struct {
URL string `json:"url"`
Token string `json:"token"`
}
type MR struct {
BranchRegexp string `json:"branch_regexp"`
Title string `json:"title"`
Description string `json:"description"`
TargetBranch string `json:"target_branch"`
Squash bool `json:"squash"`
RemoveSourceBranch bool `json:"remove_source_branch"`
LabelVars []string `json:"label_vars"`
}
type MattermostWebHook struct {
Enabled bool `json:"enabled"`
URL string `json:"url"`
MessageTmpl string `json:"message"`
User string `json:"user"`
}
type Mentioner struct {
TeamFileSource string `json:"team_file_source"`
MentionsCount int `json:"count"`
}
type SlackWebHook struct {
Enabled bool `json:"enabled"`
URL string `json:"url"`
MessageTmpl string `json:"message"`
User string `json:"user"`
}
type Telegram struct {
Enabled bool `json:"enabled"`
URL string `json:"url"`
APIKey string `json:"api_key"`
MessageTmpl string `json:"message"`
ChatID string `json:"chat_id"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.