Use versionType.displayName in changelog

This commit is contained in:
Johannes Frohnmeyer 2022-10-13 19:28:10 +02:00
parent ee7402a442
commit 0c80e760f5
Signed by: Johannes
GPG Key ID: E76429612C2929F4
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ if (File(projectDir, ".git").exists()) {
}
versionType = vt ?: VersionType.RELEASE
if (vt != null) versionS = versionS.substring(1)
changelog += "Commits in $versionType $versionS:\n"
changelog += "Commits in ${versionType.displayName} $versionS:\n"
changelog += git.log(if (tags.size >= 2) tags[1].id else null, tags[0].id)
.reversed()
.joinToString("\n") { "- ${it.shortMessage}" }