Use versionType.displayName in changelog
This commit is contained in:
parent
ee7402a442
commit
0c80e760f5
|
@ -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}" }
|
||||
|
|
Loading…
Reference in New Issue