You've already forked go-semantic-release
fix(cache): save commits to cache to avoid empty changelog
This commit is contained in:
@@ -6,16 +6,18 @@ import (
|
||||
|
||||
//ReleaseVersion struct
|
||||
type ReleaseVersion struct {
|
||||
Last ReleaseVersionEntry
|
||||
Next ReleaseVersionEntry
|
||||
Branch string
|
||||
Draft bool
|
||||
Last ReleaseVersionEntry `yaml:"last"`
|
||||
Next ReleaseVersionEntry `yaml:"next"`
|
||||
Branch string `yaml:"branch"`
|
||||
Draft bool `yaml:"draft"`
|
||||
Commits map[Release][]AnalyzedCommit `yaml:"commits"`
|
||||
}
|
||||
|
||||
//ReleaseVersionEntry struct
|
||||
type ReleaseVersionEntry struct {
|
||||
Commit string
|
||||
Version *semver.Version
|
||||
Commit string `yaml:"commit"`
|
||||
VersionString string `yaml:"version"`
|
||||
Version *semver.Version `yaml:"-"`
|
||||
}
|
||||
|
||||
//GeneratedChangelog struct
|
||||
@@ -31,3 +33,27 @@ type ChangelogTemplateConfig struct {
|
||||
Hash string
|
||||
Version string
|
||||
}
|
||||
|
||||
//AnalyzedCommit struct
|
||||
type AnalyzedCommit struct {
|
||||
Commit Commit `yaml:"commit"`
|
||||
ParsedMessage string `yaml:"parsedMessage"`
|
||||
Scope Scope `yaml:"scope"`
|
||||
ParsedBreakingChangeMessage string `yaml:"parsedBreakingChangeMessage"`
|
||||
Tag string `yaml:"tag"`
|
||||
TagString string `yaml:"tagString"`
|
||||
Print bool `yaml:"print"`
|
||||
}
|
||||
|
||||
//Scope of the commit, like feat, fix,..
|
||||
type Scope string
|
||||
|
||||
//Release types, like major
|
||||
type Release string
|
||||
|
||||
// Commit struct
|
||||
type Commit struct {
|
||||
Message string `yaml:"message"`
|
||||
Author string `yaml:"author"`
|
||||
Hash string `yaml:"hash"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user