From 7d8ed49e17ffc36885c1d5ea1ebdaebc578b560c Mon Sep 17 00:00:00 2001 From: Beatriz Vieira Date: Mon, 28 Feb 2022 21:17:37 -0300 Subject: [PATCH] feat: add HasMultipleTypes to ReleaseNoteCommitsSection issue: #40 --- sv/releasenotes.go | 5 +++++ 1 file changed, 5 insertions(+) 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 +}