config

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigFilePath

func ConfigFilePath(gitcmd git.GitInterface) string

func GitHubRemoteSource

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

Types

type Config

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

	RequireChecks       bool `default:"true" yaml:"requireChecks"`
	RequireApproval     bool `default:"true" yaml:"requireApproval"`
	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"`
}

Config object to hold spr configuration

Jump to

Keyboard shortcuts

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