Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Changelog ¶
type Changelog struct { PackageName string NewPackage bool RemovedPackage bool Modified *report.Package }
Changelog describes a changelog of the package during this generation
func NewChangelogForPackage ¶
NewChangelogForPackage returns the changelog for the given pkgDir. This function must be used when the new changes are generated, but not committed to git This function will first fetch all the exported content of the given package Then it add everything to git and then do a `git stash`, temporary revert the package to the previous state and fetch all the exported content of the given package again compare and generate a changelog report for the package This function will undo all the git changes before return
func (Changelog) HasBreakingChanges ¶
HasBreakingChanges returns if this report of changelog contains breaking changes
func (Changelog) ToMarkdown ¶
ToMarkdown returns the markdown string of this changelog