diff --git a/sv/releasenotes.go b/sv/releasenotes.go index 316abee..f4a7d85 100644 --- a/sv/releasenotes.go +++ b/sv/releasenotes.go @@ -132,3 +132,8 @@ func (ReleaseNoteCommitsSection) SectionType() string { func (s ReleaseNoteCommitsSection) SectionName() string { return s.Name } + +// HasMultipleTypes return true if has more than one commit type. +func (s ReleaseNoteCommitsSection) HasMultipleTypes() bool { + return len(s.Types) > 1 +}