Documentation
¶
Index ¶
- func MergeTOML(base, override string) (string, error)
- type Generator
- func (g *Generator) Check() error
- func (g *Generator) CheckCliff() error
- func (g *Generator) EffectiveChangelogConfig() (string, error)
- func (g *Generator) EffectiveReleaseNotesConfig() (string, error)
- func (g *Generator) Generate(tag string, lc *port.LinkContext) (string, error)
- func (g *Generator) Validate() error
- type Mode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
Generator implements port.Generator for git-cliff.
func (*Generator) CheckCliff ¶ added in v0.6.0
CheckCliff runs git-cliff --context --no-exec against the effective merged config. Called by `heraut check cliff`.
func (*Generator) EffectiveChangelogConfig ¶
EffectiveChangelogConfig returns the merged TOML for the changelog variant.
func (*Generator) EffectiveReleaseNotesConfig ¶
EffectiveReleaseNotesConfig returns the merged TOML for the release-notes variant.
func (*Generator) Generate ¶
Generate invokes git-cliff with the merged TOML config and returns stdout (release-notes mode) or empty string (changelog mode, where output goes to a file).
When lc is non-nil, heraut-owned env vars (HERAUT_REMOTE_URL, HERAUT_PLATFORM) are injected into the git-cliff process so the template resolves links against that platform; when nil, git-cliff runs with the ambient environment and the template falls through to its CI-var detection (ADR-0021 / T68).