config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Administration

type Administration struct {
	Permission Permission `yaml:"permission"`
}

type Github

type Github struct {
	AppID              int      `yaml:"appId"`
	Organization       string   `yaml:"organization"`
	User               string   `yaml:"user"`
	WebhookSecret      string   `yaml:"webhookSecret"`
	PrivateKeyLocation string   `yaml:"privateKeyLocation"`
	PrivateKey         string   `yaml:"privateKey"`
	Events             []string `yaml:"events"`
}

type Layout

type Layout struct {
	Administration Administration `yaml:"administration"`
	PullRequest    PullRequest    `yaml:"pullRequest"`
}

type Permission

type Permission struct {
	Users        []string       `yaml:"users"`
	Repositories []Repositories `yaml:"repositories"`
}

type PullRequest

type PullRequest struct {
	ApproveCommand        string    `yaml:"approveCommand"`
	RunTestSuiteCommand   string    `yaml:"runTestSuiteCommand"`
	MergeCommand          string    `yaml:"mergeCommand"`
	MergeAndDeleteCommand string    `yaml:"mergeAndDeleteCommand"`
	TestSuite             TestSuite `yaml:"testSuite"`
}

type Repositories

type Repositories struct {
	Repository Repository `yaml:"repository"`
}

type Repository

type Repository struct {
	Name  string   `yaml:"name"`
	Users []string `yaml:"users"`
}

type Settings

type Settings struct {
	Layout Layout `yaml:"layout"`
	Github Github `yaml:"github"`
}

func (*Settings) ReadConf

func (c *Settings) ReadConf()

type TestSuite

type TestSuite struct {
	NamePattern string `yaml:"namePattern"`
	Reviewers   bool   `yaml:"reviewers"`
	Assignees   bool   `yaml:"assignees"`
	Labels      bool   `yaml:"labels"`
}

Jump to

Keyboard shortcuts

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