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"` }
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 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
Click to show internal directories.
Click to hide internal directories.