config

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2018 License: Apache-2.0 Imports: 0 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	HTTP        HTTPConfig            `mapstructure:"http"`
	Webhook     WebhookConfig         `mapstructure:"webhook"`
	GitHubApp   GitHubAppConfig       `mapstructure:"github"`
	DefaultRepo RepoConfig            `mapstructure:"defaults"`
	Repos       map[string]RepoConfig `mapstructure:"repos"`
}

func NewWithDefaults

func NewWithDefaults() Config

type GitHubAppConfig added in v0.2.0

type GitHubAppConfig struct {
	AppID          int64  `mapstructure:"appId"`
	PrivateKeyFile string `mapstructure:"privateKey"`
}

type HTTPConfig

type HTTPConfig struct {
	Address string `mapstructure:"address"`
	Port    int    `mapstructure:"port"`
	TLSCert string `mapstructure:"tlsCert"`
	TLSKey  string `mapstructure:"tlsKey"`
}

type LabelConfig added in v0.3.1

type LabelConfig struct {
	NewIssues       []string `mapstructure:"newIssues"`
	Wip             []string `mapstructure:"wip"`
	ReviewRequested string   `mapstructure:"reviewRequested"`
	Approved        string   `mapstructure:"approved"`
}

type RepoConfig added in v0.3.1

type RepoConfig struct {
	Disabled    bool        `mapstructure:"disabled"`
	Labels      LabelConfig `mapstructure:"labels"`
	WipPatterns []string    `mapstructure:"wipPatterns"`
}

type WebhookConfig

type WebhookConfig struct {
	Secret string `mapstructure:"secret"`
}

Jump to

Keyboard shortcuts

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