in internal/settings/settings.go [41:65]
func setDefaults() {
viper.SetDefault("config_file", ".")
// try to compute GIT_REPO_ROOT value if empty
if os.Getenv("GIT_REPO_ROOT") == "" {
root, err := gitreporoot.Find()
if err != nil {
log.Printf("git repo root not found, $GIT_REPO_ROOT will be empty: %v\n", err)
} else {
os.Setenv("GIT_REPO_ROOT", root)
}
}
// fragment_root supports env var expansion
viper.SetDefault("fragment_root", "$GIT_REPO_ROOT")
viper.SetDefault("fragment_path", "changelog/fragments")
viper.SetDefault("fragment_location", path.Join(
os.ExpandEnv(viper.GetString("fragment_root")),
viper.GetString("fragment_path")))
viper.SetDefault("changelog_destination", "changelog")
viper.SetDefault("rendered_changelog_destination", "changelog")
viper.SetDefault("template", "asciidoc-embedded")
}