config

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvGopath = "gopath"

	GitUser      = "git.user"
	GitHost      = "git.host"
	GitProject   = "git.project"
	GitProvider  = "git.provider"
	GitDirectory = "git.directory"
	SourceBranch = "git.default-branch"

	// User, Host, Project, Repo
	CloneSSHURLTmpl = "ssh://%s@%s/%s/%s.git"

	SortRepos        = "repos.sort"
	RepoAliases      = "repos.aliases"
	UnwantedLabels   = "repos.unwanted-labels"
	SkipUnwanted     = "repos.skip-unwanted"
	DefaultReviewers = "repos.reviewers"
	CatalogCacheFile = "repos.cache.filename"
	CatalogCacheTTL  = "repos.cache.ttl"

	CommitAmend   = "commit.amend"
	CommitMessage = "commit.message"

	Branch    = "branch"
	Reviewers = "reviewers"
	AuthToken = "auth-token"
	UseSync   = "sync"

	ChannelBuffer = "channels.buffer-size"

	// Bitbucket v1 API PR template - Host, Project, Repo
	ApiPathTmpl = "https://%s/rest/api/1.0/projects/%s/repos/%s/pull-requests"
	PrTmpl      = `` /* 182-byte string literal not displayed */

	PrRepoTmpl = `{
			"slug": "%s",
			"project": {"key": "%s"}
		}`
	PrReviewerTmpl = `{
		"user": {"name": "%s"}
	}`
)

Variables

View Source
var (
	CfgFile string

	// Version is dynamically set at build time using the -X linker flag.
	// Default value is used for testing and development builds.
	Version = "dev"
)

Functions

func Init

func Init()

Init reads in config file and ENV variables if set.

func LoadFixture added in v0.8.0

func LoadFixture(dir string) error

LoadFixture will load example configuration; for testing only!

Types

This section is empty.

Jump to

Keyboard shortcuts

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