Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppConfig ¶
type AppConfig struct {
Metrics metrics.AppMetrics
PrNotifications []PrNotification
}
AppConfig is the main app runtime config
func (*AppConfig) LoadConfig ¶
LoadConfig loads config file
type Notification ¶
type Notification struct {
Slack SlackNotification `yaml:"slack"`
}
Notification struct describes desired notification routes
type PrNotification ¶
type PrNotification struct {
Owner string `yaml:"gh_owner"`
Labels []string `yaml:"gh_pr_labels"`
Repo string `yaml:"gh_repo"`
Schedule string `yaml:"schedule"`
IncludeDrafts bool `yaml:"gh_pr_include_drafts"`
IgnoreApproved bool `yaml:"gh_pr_ignore_approved"`
IgnoreChangesRequested bool `yaml:"gh_pr_ignore_changes_requested"`
Notifications Notification `yaml:"notify"`
}
PrNotification is a struct for a single GH repo PRs notifications
type SlackNotification ¶
type SlackNotification struct {
ChannelID string `yaml:"channel_id"`
Header string `yaml:"message_header"`
}
SlackNotification struct describes slack notification config
Click to show internal directories.
Click to hide internal directories.