Documentation ¶
Index ¶
Constants ¶
View Source
const ( CliffConfigName = "cliff.toml" Cmd = "git-cliff" )
Variables ¶
This section is empty.
Functions ¶
func BuildChangelog ¶
BuildChangelog Update the change log file with any unreleased changes.
semVer allows you to set the tag manually
func Bump ¶
Bump Returns the next semantic version if there are unreleased changes.
This will return an empty string if there are no released changes, however that does NOT mean the changelog is up-to-date.
func HasUnreleasedChanges ¶
HasUnreleasedChanges Indicate there are changes in the current branch that needed to be added to the changelog and tagged.
This makes use of the --context flag to return any unreleased commit.
func NextVersion ¶
NextVersion Calculated semantic version.
func UnreleasedMessage ¶
UnreleasedMessage Get unreleased commits changes without header and footer.
Types ¶
type Unreleased ¶
type Unreleased struct { Version string `json:"version"` Commits []struct { Id string `json:"id"` Message string `json:"message"` Body interface{} `json:"body"` Footers []interface{} `json:"footers"` Group string `json:"group"` BreakingDescription interface{} `json:"breaking_description"` Breaking bool `json:"breaking"` Scope interface{} `json:"scope"` Links []interface{} `json:"links"` Author struct { Name string `json:"name"` Email string `json:"email"` Timestamp int `json:"timestamp"` } `json:"author"` Committer struct { Name string `json:"name"` Email string `json:"email"` Timestamp int `json:"timestamp"` } `json:"committer"` Conventional bool `json:"conventional"` MergeCommit bool `json:"merge_commit"` Github struct { Username interface{} `json:"username"` PrTitle interface{} `json:"pr_title"` PrNumber interface{} `json:"pr_number"` PrLabels []interface{} `json:"pr_labels"` IsFirstTime bool `json:"is_first_time"` } `json:"github"` } `json:"commits"` CommitId interface{} `json:"commit_id"` Timestamp int `json:"timestamp"` Previous interface{} `json:"previous"` Github struct { Contributors []interface{} `json:"contributors"` } `json:"github"` }
func UnreleasedChanges ¶
func UnreleasedChanges(wd string) ([]Unreleased, error)
UnreleasedChanges Indicate there are changes in the current branch that needed to be added to the changelog and tagged.
This makes use of the --context flag to return any unreleased commit.
Click to show internal directories.
Click to hide internal directories.