Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Repo *RepoConfig
User *UserConfig
State *InternalState
}
func DefaultConfig ¶ added in v0.7.0
func DefaultConfig() *Config
func EmptyConfig ¶ added in v0.7.0
func EmptyConfig() *Config
func (Config) MergeMethod ¶ added in v0.8.2
func (c Config) MergeMethod() (genclient.PullRequestMergeMethod, error)
type InternalState ¶ added in v0.13.0
type RepoConfig ¶ added in v0.7.0
type RepoConfig struct {
GitHubRepoOwner string `yaml:"githubRepoOwner"`
GitHubRepoName string `yaml:"githubRepoName"`
GitHubHost string `default:"github.com" yaml:"githubHost"`
GitHubRemote string `default:"origin" yaml:"githubRemote"`
GitHubBranch string `default:"main" yaml:"githubBranch"`
RequireChecks bool `default:"true" yaml:"requireChecks"`
RequireApproval bool `default:"true" yaml:"requireApproval"`
DefaultReviewers []string `yaml:"defaultReviewers"`
MergeMethod string `default:"rebase" yaml:"mergeMethod"`
MergeQueue bool `default:"false" yaml:"mergeQueue"`
PRTemplateType string `default:"stack" yaml:"prTemplateType"`
PRTemplatePath string `yaml:"prTemplatePath,omitempty"`
PRTemplateInsertStart string `yaml:"prTemplateInsertStart,omitempty"`
PRTemplateInsertEnd string `yaml:"prTemplateInsertEnd,omitempty"`
MergeCheck string `yaml:"mergeCheck,omitempty"`
ForceFetchTags bool `default:"false" yaml:"forceFetchTags"`
ShowPrTitlesInStack bool `default:"false" yaml:"showPrTitlesInStack"`
BranchPushIndividually bool `default:"false" yaml:"branchPushIndividually"`
}
Config object to hold spr configuration
type UserConfig ¶ added in v0.7.0
type UserConfig struct {
ShowPRLink bool `default:"true" yaml:"showPRLink"`
LogGitCommands bool `default:"true" yaml:"logGitCommands"`
LogGitHubCalls bool `default:"true" yaml:"logGitHubCalls"`
StatusBitsHeader bool `default:"true" yaml:"statusBitsHeader"`
StatusBitsEmojis bool `default:"true" yaml:"statusBitsEmojis"`
CreateDraftPRs bool `default:"false" yaml:"createDraftPRs"`
PreserveTitleAndBody bool `default:"false" yaml:"preserveTitleAndBody"`
NoRebase bool `default:"false" yaml:"noRebase"`
DeleteMergedBranches bool `default:"false" yaml:"deleteMergedBranches"`
}
Click to show internal directories.
Click to hide internal directories.