Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
GitHubRepoOwner string `yaml:"githubRepoOwner"`
GitHubRepoName string `yaml:"githubRepoName"`
RequireChecks bool `yaml:"requireChecks"`
RequireApproval bool `yaml:"requireApproval"`
}
Config object to hold spr configuration
func ReadConfig ¶
func ReadConfig() *Config
ReadConfig looks for a .spr.yml file in the root git directory.
if found, the config is read and returned. if not found, a default config is created written to the config file and returned.
Click to show internal directories.
Click to hide internal directories.