0
0
mirror of https://github.com/thegeeklab/git-sv.git synced 2024-11-21 12:00:40 +00:00

feat: add HasMultipleTypes to ReleaseNoteCommitsSection

issue: #40
This commit is contained in:
Beatriz Vieira 2022-02-28 21:17:37 -03:00
parent 67042ac1e7
commit 7d8ed49e17

View File

@ -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
}