config

package
v0.7.5 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GitHubRemoteSource

func GitHubRemoteSource(config *Config, gitcmd git.GitInterface) *remoteSource

func RepoConfigFilePath added in v0.7.0

func RepoConfigFilePath(gitcmd git.GitInterface) string

func UserConfigFilePath added in v0.7.0

func UserConfigFilePath() string

Types

type Config

type Config struct {
	Repo *RepoConfig
	User *UserConfig
}

func DefaultConfig added in v0.7.0

func DefaultConfig() *Config

func EmptyConfig added in v0.7.0

func EmptyConfig() *Config

func ParseConfig added in v0.7.0

func ParseConfig(gitcmd git.GitInterface) *Config

type RepoConfig added in v0.7.0

type RepoConfig struct {
	GitHubRepoOwner string `yaml:"githubRepoOwner"`
	GitHubRepoName  string `yaml:"githubRepoName"`

	RequireChecks   bool `default:"true" yaml:"requireChecks"`
	RequireApproval bool `default:"true" yaml:"requireApproval"`
}

Config object to hold spr configuration

type UserConfig added in v0.7.0

type UserConfig struct {
	ShowPRLink          bool `default:"true" yaml:"showPRLink"`
	CleanupRemoteBranch bool `default:"true" yaml:"cleanupRemoteBranch"`
	LogGitCommands      bool `default:"false" yaml:"logGitCommands"`
	LogGitHubCalls      bool `default:"false" yaml:"logGitHubCalls"`
	StatusBitsHeader    bool `default:"true" yaml:"statusBitsHeader"`

	Stargazer bool `default:"false" yaml:"stargazer"`
	RunCount  int  `default:"0" yaml:"runcount"`
}

Jump to

Keyboard shortcuts

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