You've already forked go-semantic-release
feat(analyzer): update AnalyzedCommit to add flexibility in parsing a message
This provides flexibility of parsing and rendering structured messages with more detail in the changelog and helps extract metadata from the message. The new structure can be used to split a message in multiple blocks (e.g. footer)
This commit is contained in:
@@ -13,6 +13,11 @@ const (
|
||||
DefaultTagPrefix = "v"
|
||||
)
|
||||
|
||||
// AnalyzerConfig struct
|
||||
type AnalyzerConfig struct {
|
||||
BlockPrefixes []string `yaml:"blockPrefixes"`
|
||||
}
|
||||
|
||||
// ChangelogConfig struct
|
||||
type ChangelogConfig struct {
|
||||
PrintAll bool `yaml:"printAll,omitempty"`
|
||||
@@ -83,6 +88,7 @@ type Checksum struct {
|
||||
type ReleaseConfig struct {
|
||||
CommitFormat string `yaml:"commitFormat"`
|
||||
Branch map[string]string `yaml:"branch"`
|
||||
Analyzer AnalyzerConfig `yaml:"analyzer"`
|
||||
Changelog ChangelogConfig `yaml:"changelog,omitempty"`
|
||||
Release string `yaml:"release,omitempty"`
|
||||
GitHubProvider GitHubProvider `yaml:"github,omitempty"`
|
||||
|
||||
@@ -100,6 +100,7 @@ github:
|
||||
Compress: false}},
|
||||
ReleaseTitle: "go-semantic-release release",
|
||||
IsPreRelease: false,
|
||||
Analyzer: config.AnalyzerConfig{BlockPrefixes: []string{}},
|
||||
}, result)
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user