Documentation
¶
Overview ¶
Package changelog handles changelog fragment parsing and assembly.
Fragments live in changelog.d/<bead-id>.md (or <bead-id>.en.md for backwards compatibility). Each fragment has a "category: <Category>" header line followed by markdown bullet points describing changes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Categories = []string{
"Added",
"Changed",
"Deprecated",
"Removed",
"Fixed",
"Security",
}
Valid changelog categories, in the order they appear in the assembled output.
Functions ¶
func ListBeadIDs ¶
ListBeadIDs returns the bead IDs from all fragments in the directory.
func UpdateChangelog ¶
UpdateChangelog reads an existing CHANGELOG.md, replaces the [Unreleased] section with assembled fragments, and returns the new content. If the file doesn't exist, a new one is created.
func ValidateFragmentExists ¶
ValidateFragmentExists checks if a changelog fragment exists for the given bead ID.
Types ¶
type Fragment ¶
Fragment represents a single changelog entry file.
func CollectFragments ¶
CollectFragments reads all fragment files from a changelog.d directory.
func ParseFragment ¶
ParseFragment reads a changelog fragment file and returns a Fragment.