feat(releaseprep): force major bump on Breaking heading

This commit is contained in:
Micheal Wilkinson
2026-03-20 18:27:09 +00:00
parent 5c0653e28e
commit f140ea1d70

View File

@@ -82,7 +82,7 @@ func RecommendedTag(rootDir string, options Options) (string, error) {
}
switch {
case sectionHasEntries(unreleasedBody, "Breaking"), sectionHasEntries(unreleasedBody, "Removed"):
case strings.Contains(unreleasedBody, "### Breaking"), sectionHasEntries(unreleasedBody, "Removed"):
parsed.major++
parsed.minor = 0
parsed.patch = 0