Fix changelog gen
ci/woodpecker/push/pages Pipeline was successful Details
ci/woodpecker/push/gradle Pipeline was successful Details

This commit is contained in:
Johannes Frohnmeyer 2022-11-25 16:51:40 +01:00
parent 290c9bed1c
commit 81aebec2c6
Signed by: Johannes
GPG Key ID: E76429612C2929F4
1 changed files with 7 additions and 3 deletions

View File

@ -29,14 +29,18 @@ if (File(projectDir, ".git").exists()) {
.joinToString("\n") { "- ${it.shortMessage}" }
} else {
changelog += "Commits after ${versionType.displayName} $versionS:\n"
changelog += git.log(tags[0].id)
changelog += git.log(tags[0].id, git.repository.resolve("HEAD"))
.reversed()
.joinToString("\n") { "- ${it.shortMessage}" }
}
} else {
changelog += "Commits after inception:\n"
changelog += git.log().all().call()
.reversed()
.joinToString("\n") { "- ${it.shortMessage}" }
}
}
}
if (changelog == "") changelog = "No changelog"
} else changelog = "No changelog"
if (!isRelease) {
versionS += "-SNAPSHOT"