config

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 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"`
}

Administration represents general permissions.

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"`
}

Github represents github app owner configuration.

type Layout

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

Layout represents permissions level and pull request functionalities.

type Permission

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

Permission represents high level user's and repository permissions.

type PullRequest

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

PullRequest represents commands and functionalities.

type Repositories

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

Repositories represents low level permissions in repositories.

type Repository

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

Repository represents user permission in a single repository.

type Settings

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

Settings represents the configuration and authorization aspects.

func (*Settings) ReadConf

func (c *Settings) ReadConf()

ReadConf initialize the configuration.

type TestSuite

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

TestSuite represents configuration for the test cases.

Jump to

Keyboard shortcuts

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