diff --git a/src/main/kotlin/git/semver/plugin/changelog/ChangeLogBuilder.kt b/src/main/kotlin/git/semver/plugin/changelog/ChangeLogBuilder.kt index 86fe605..28f85a2 100644 --- a/src/main/kotlin/git/semver/plugin/changelog/ChangeLogBuilder.kt +++ b/src/main/kotlin/git/semver/plugin/changelog/ChangeLogBuilder.kt @@ -3,7 +3,7 @@ package git.semver.plugin.changelog import git.semver.plugin.changelog.ChangeLogTexts.Companion.BREAKING_CHANGE import java.util.* -open class ChangeLogBuilder( +class ChangeLogBuilder( val groupKey: String? = null, private val commitInfos: List, private val context: ChangeLogFormatter.Context, diff --git a/src/test/kotlin/git/semver/plugin/changelog/ChangeLogFormatTest.kt b/src/test/kotlin/git/semver/plugin/changelog/ChangeLogFormatTest.kt index 8c9dcef..d120470 100644 --- a/src/test/kotlin/git/semver/plugin/changelog/ChangeLogFormatTest.kt +++ b/src/test/kotlin/git/semver/plugin/changelog/ChangeLogFormatTest.kt @@ -135,10 +135,14 @@ class ChangeLogFormatTest { val changeLog = listOf( Commit("fix: B", "1", emptySequence()), Commit("fix: A", "2", emptySequence()), + Commit("ignore: B", "5", emptySequence()), Commit("fix: B", "3", emptySequence()), Commit("fix: A", "4", emptySequence()), ) - val c = ChangeLogTexts(mutableMapOf("fix" to "FIX", "#" to "CHANGELOG")) + val c = ChangeLogTexts(mutableMapOf( + "fix" to "FIX", + "ignore" to "", + "#" to "CHANGELOG")) c.groupByText = false c.sortByText = false