Documentation
¶
Overview ¶
Package discovery walks the repo for CHANGELOG.md files, applies the configured exclude list, derives module names from paths, and pairs each candidate with its module-specific most-recent tag.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ModuleName ¶
ModuleName returns the module name (directory) for a given changelog path. Root-level files return "".
func RemoveExcluded ¶
RemoveExcluded filters out paths whose directory matches any prefix in excludeDirs. Each excludeDir must be a directory path ending in "/".
Types ¶
type Candidate ¶
type Candidate struct {
Path string // repo-relative path to CHANGELOG.md
ModuleName string // directory of the changelog ("" for repo root)
LatestTag string // "" when there is no prior tag for this module
}
Candidate is a single changelog that has actually been modified since its module's most recent tag (or has no prior tag).
type Discoverer ¶
type Discoverer struct {
// contains filtered or unexported fields
}
Discoverer pairs a vcs.Repo with discovery configuration.
Click to show internal directories.
Click to hide internal directories.