config

package
v0.3.9 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2019 License: Apache-2.0 Imports: 0 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Board added in v0.3.3

type Board struct {
	ZenhubToken string   `mapstructure:"zenhub_token"`
	GithubRepo  string   `mapstructure:"github_repo"`
	Columns     []Column `mapstructure:"columns"`
}

type Column added in v0.3.3

type Column struct {
	Name              string   `mapstructure:"name"`
	Id                string   `mapstructure:"id"`
	Events            []string `mapstructure:"events"`
	PostMergePipeline bool     `mapstructure:"postMergePipeline"`
	IsInbox           bool     `mapstructure:"isInbox"`
}

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"`
	Board       Board       `mapstructure:"board"`
}

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