settings

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Settings = &GlobalSettings{}

Functions

This section is empty.

Types

type GlobalSettings

type GlobalSettings struct {
	ChangelogPath    string `yaml:"changelogPath"`
	ReleaseNotesPath string `yaml:"releaseNotesPath"`
	MainBranch       string `yaml:"mainBranch"`
	DevelopBranch    string `yaml:"defaultBranch"`
	CGConfigPath     string `yaml:"cgConfigPath"`
	Providers        struct {
		Gitlab struct {
			Labels map[models.Category]string `yaml:"labels"`
		} `yaml:"gitlab"`
		Github struct {
			Labels map[models.Category]string `yaml:"labels"`
		} `yaml:"github"`
	} `yaml:"providers"`
	ReleaseProvider string   `yaml:"releaseProvider"`
	TasksProvider   string   `yaml:"tasksProvider"`
	ReleasePipes    []string `yaml:"releasePipes"`
	TasksPipes      []string `yaml:"tasksPipes"`
	TasksPipesCfg   struct {
		ConventionalCommits struct {
			Categories map[models.Category]string `yaml:"categories"`
		} `yaml:"conventional_commits"`
		Jira struct {
			BaseUrl string                     `yaml:"baseUrl"`
			REGEX   string                     `yaml:"regex"`
			Labels  map[models.Category]string `yaml:"labels"`
		} `yaml:"jira"`
		InclusionsExclusions struct {
			Labels struct {
				Inclusions []string `yaml:"included"`
				Exclusions []string `yaml:"excluded"`
			} `yaml:"labels"`
			Paths struct {
				Inclusions []string `yaml:"included"`
				Exclusions []string `yaml:"excluded"`
			} `yaml:"paths"`
		} `yaml:"inclusions_exclusions"`
	} `yaml:"tasksPipesCfg"`
	InitialVersion  string `yaml:"initialVersion"`
	Template        string `yaml:"template"`
	TemplatesConfig struct {
		StylishMarkdown struct {
			Categories map[models.Category][]string `yaml:"categories"`
		} `yaml:"stylish_markdown"`
	} `yaml:"templatesCfg"`
}

func (*GlobalSettings) RetrieveSettingsFromFile added in v1.1.0

func (g *GlobalSettings) RetrieveSettingsFromFile(file string)

Jump to

Keyboard shortcuts

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