Documentation
¶
Overview ¶
Package release versions the project aitk manages: the next SemVer from Conventional Commits, a Keep a Changelog section, manifest versions, and an annotated tag.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Less ¶ added in v2.5.1
Less orders versions by SemVer precedence (a pre-release comes before its release).
func WriteChangelog ¶
WriteChangelog inserts the section after "## [Unreleased]" (creating the file when absent).
Types ¶
type Commit ¶
type Commit struct {
Hash string `json:"hash"`
Type string `json:"type"`
Scope string `json:"scope,omitempty"`
Subject string `json:"subject"`
Breaking bool `json:"breaking,omitempty"`
Task string `json:"task,omitempty"`
}
Commit is a parsed Conventional Commit.
type Options ¶
type Options struct {
Bump string // auto | major | minor | patch
Pre string // pre-release label, e.g. rc
}
Options control the plan.
type Plan ¶
type Plan struct {
Previous string `json:"previous"`
Version string `json:"version"`
Tag string `json:"tag"`
Bump string `json:"bump"`
Commits []Commit `json:"commits"`
Skipped int `json:"skipped_non_conventional"`
Notes string `json:"notes"`
Changelog string `json:"changelog"`
Manifests []string `json:"manifests,omitempty"`
Date string `json:"date"`
FirstRelease bool `json:"first_release,omitempty"`
}
Plan describes a release.