feat(conventional): parse body and footers according to the rules

Previous assumption about multiple labeled body blocks and footers is
not correct. There is only one body text block with multi-line support.
A footer always starts with a token with a separator.
- A body ends when a footer is found or text ends.
- A footer ends when another footer is found or text ends.
This commit is contained in:
maulik13
2021-02-22 11:45:32 +01:00
committed by Felix Wiedmann
parent dc4d1c581a
commit a20992af14
5 changed files with 263 additions and 103 deletions

View File

@@ -15,7 +15,7 @@ const (
// AnalyzerConfig struct
type AnalyzerConfig struct {
BlockPrefixes []string `yaml:"blockPrefixes"`
TokenSeparators []string `yaml:"tokenSeparators"`
}
// ChangelogConfig struct