autobotcfg

package
v0.0.0-...-ebf29b9 Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AutobotConfig

type AutobotConfig struct {
	PRCreator            GithubAppConfig     `yaml:"prCreator"`
	PRReviewer           *GithubAppConfig    `yaml:"prReviewer"`
	ChangeMakers         []ChangeMakerConfig `yaml:"changeMakers"`
	CloneDataDir         string              `yaml:"cloneDataDir"`
	Repos                []RepoConfig        `yaml:"repos"`
	CommitterConfig      CommitterConfig     `yaml:"committerConfig"`
	DelayForAutoApproval time.Duration       `yaml:"delayForAutoApproval"`
}

func Load

func Load(cfg io.WriterTo) (*AutobotConfig, error)

type AutobotPerRepoConfig

type AutobotPerRepoConfig struct {
	ChangeMakers              []PerRepoChangeMakerConfig `yaml:"changeMakers"`
	AllowAutoReview           bool                       `yaml:"allowAutoReview"`
	AllowUsersToTriggerAccept bool                       `yaml:"allowUsersToTriggerAccept"`
	AllowAutoMerge            bool                       `yaml:"allowAutoMerge"`
}

func LoadPerRepoConfig

func LoadPerRepoConfig(cfg io.WriterTo) (*AutobotPerRepoConfig, error)

type ChangeMakerConfig

type ChangeMakerConfig struct {
	Name string      `yaml:"name"`
	Data interface{} `yaml:"data"`
}

type CommitterConfig

type CommitterConfig struct {
	AuthorName  string `yaml:"authorName"`
	AuthorEmail string `yaml:"authorEmail"`
}

type GithubAppConfig

type GithubAppConfig struct {
	AppID          int64  `yaml:"appID"`
	InstallationID int64  `yaml:"installationID"`
	PEMKeyLoc      string `yaml:"PEMKeyLoc"`
}

func (*GithubAppConfig) Validate

func (g *GithubAppConfig) Validate() error

type PerRepoChangeMakerConfig

type PerRepoChangeMakerConfig struct {
	Name           string      `yaml:"name"`
	FileMatchRegex []string    `yaml:"fileMatchRegex"`
	AutoApprove    bool        `yaml:"autoApprove"`
	AutoMerge      bool        `yaml:"autoMerge"`
	Data           interface{} `yaml:"data"`

	Which string `yaml:"which"`
	// contains filtered or unexported fields
}

func (*PerRepoChangeMakerConfig) MatchFile

func (c *PerRepoChangeMakerConfig) MatchFile(name string) bool

func (*PerRepoChangeMakerConfig) Regex

func (c *PerRepoChangeMakerConfig) Regex() []*regexp.Regexp

type RepoConfig

type RepoConfig struct {
	Branch string `yaml:"branch"`
	Owner  string `yaml:"owner"`
	Name   string `yaml:"name"`
}

func (RepoConfig) CloneURL

func (r RepoConfig) CloneURL() string

func (RepoConfig) RemoteBranch

func (r RepoConfig) RemoteBranch() string

func (RepoConfig) RemoteName

func (r RepoConfig) RemoteName() string

func (RepoConfig) RemoteOwner

func (r RepoConfig) RemoteOwner() string

func (RepoConfig) String

func (r RepoConfig) String() string

Jump to

Keyboard shortcuts

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