config

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2026 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DumpDefaultConfig

func DumpDefaultConfig() ([]byte, error)

Types

type Configuration

type Configuration struct {
	DefaultScope        Scope         `yaml:"default_scope"`
	Names               Names         `yaml:"names"`
	Order               Order         `yaml:"order"`
	LabelMatchers       LabelMatchers `yaml:"label_matchers"`
	AuthorshipLabels    Labels        `yaml:"authorship_labels"`
	SkipChangelogLabels Labels        `yaml:"skip_changelog_labels"`
}

func DefaultConfig

func DefaultConfig() Configuration

func LoadConfig

func LoadConfig(configFile string) (Configuration, error)

type LabelMatcher

type LabelMatcher struct {
	Labels Labels `yaml:"labels"`
	Scope  Scope  `yaml:"scope"`
}

type LabelMatchers

type LabelMatchers []LabelMatcher

type Labels

type Labels = []string

type Names

type Names map[Scope]string

type Order

type Order []Scope

type Scope

type Scope string

type YamlErrorWrapper

type YamlErrorWrapper struct {
	// contains filtered or unexported fields
}

func (*YamlErrorWrapper) Error

func (e *YamlErrorWrapper) Error() string

func (*YamlErrorWrapper) Is

func (e *YamlErrorWrapper) Is(err error) bool

Jump to

Keyboard shortcuts

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