Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Slack SlackConfig Jira JiraConfig Replies ReplyConfig Regex RegexConfig }
Config contains the full config structure of this bot
func LoadPattern ¶
LoadPattern loads config yaml file(s) by a glob pattern
type JiraConfig ¶
type JiraConfig struct { Host string Username string Password string Projects []string `yaml:",flow"` Location string Components map[string]string `yaml:",flow"` Statuses map[string]string `yaml:",flow"` Priorities map[string]Priority `yaml:",flow"` FeatureTeams TeamConfig TimeFormat string BugOverview struct { ListAll []string `yaml:",flow"` All string Medium string } Sorting map[string]string `yaml:",flow"` }
JiraConfig contains the credentials and configuration of the JIRA client
type RegexConfig ¶
type RegexConfig struct { JiraAssignee string JiraCustom string JiraIssueType string JiraOption string JiraPriority string JiraProject string JiraSorting string JiraStatus string JiraTime string JiraOffsetTime string JiraOffsetField string ReplyColor string ReplyLayout string ReplyList string ReplyTitle string CronCommand string CronTime string }
RegexConfig contains the various regex expressions to parse Slack messages for commands
type ReplyConfig ¶
type ReplyConfig struct { Jira map[string]struct { Title string Text string // use list for jira ticket list Parameter string // amount/assignee can be replaced in title or text with %d/%s Color string OptionalFields bool } BugThresholds map[string]struct { Danger int Warning int } Colors struct { Red string Yellow string Green string Blue string Grey string } }
ReplyConfig contains the configuration for replies via Slack
type SlackConfig ¶
type SlackConfig struct {
Token string
}
SlackConfig contains the credentials of the Slack client
Click to show internal directories.
Click to hide internal directories.