Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrConfigNotFound = errors.New("config file not found") ErrEmptyKinds = errors.New("kinds list must not be empty") )
View Source
var ErrGitDirNotFound = errors.New(".git directory not found")
Functions ¶
func FindConfig ¶ added in v0.2.0
func FindConfigUpward ¶
func FindGitDir ¶ added in v0.2.0
func FindGitDirUpward ¶ added in v0.2.0
func SortChanges ¶
func SortChanges(changes []Change, kinds []KindConfig)
Types ¶
type Change ¶
type Change struct {
Kind string `yaml:"kind"`
Body string `yaml:"body"`
Time time.Time `yaml:"time"`
}
func LoadChange ¶
type Config ¶
type Config struct {
ChangesDir string `yaml:"changesDir"`
UnreleasedDir string `yaml:"unreleasedDir"`
ChangelogPath string `yaml:"changelogPath"`
VersionFormat string `yaml:"versionFormat"`
KindFormat string `yaml:"kindFormat"`
ChangeFormat string `yaml:"changeFormat"`
Kinds []KindConfig `yaml:"kinds"`
}
func DefaultConfig ¶
func DefaultConfig() *Config
func LoadConfig ¶
func LoadConfigFromPath ¶
func (*Config) UnreleasedPath ¶
type KindConfig ¶
Click to show internal directories.
Click to hide internal directories.