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

refactor: truncate time in minutes for release notes

This commit is contained in:
Beatriz Vieira 2019-11-17 14:32:33 -03:00
parent a32342cf47
commit ad7a5286b9

View File

@ -67,7 +67,7 @@ func (p ReleaseNoteProcessorImpl) Get(commits []GitCommitLog) ReleaseNote {
}
}
return ReleaseNote{Date: time.Now(), Sections: sections, BreakingChanges: breakingChanges}
return ReleaseNote{Date: time.Now().Truncate(time.Minute), Sections: sections, BreakingChanges: breakingChanges}
}
// Format format a release note.