Mirror von
https://github.com/ViaVersion/ViaBackwards.git
synchronisiert 2024-11-18 05:50:08 +01:00
Include link to commit in autopublished changelog
Dieser Commit ist enthalten in:
Ursprung
95e3446e8c
Commit
2e8d6bcc9f
@ -38,7 +38,7 @@ fun Project.latestCommitHash(): String {
|
||||
return byteOut.toString(Charsets.UTF_8.name()).trim()
|
||||
}
|
||||
|
||||
fun Project.lastCommitMessage(): String {
|
||||
fun Project.latestCommitMessage(): String {
|
||||
val byteOut = ByteArrayOutputStream()
|
||||
exec {
|
||||
commandLine = listOf("git", "log", "-1", "--pretty=%B")
|
||||
|
@ -50,7 +50,8 @@ val suffixedVersion = if (isRelease) baseVersion else baseVersion + "+" + System
|
||||
val changelogContent = if (isRelease) {
|
||||
"See [GitHub](https://github.com/ViaVersion/ViaBackwards) for release notes."
|
||||
} else {
|
||||
rootProject.lastCommitMessage()
|
||||
val commitHash = rootProject.latestCommitHash()
|
||||
"[$commitHash](https://github.com/ViaVersion/ViaBackwards/commit/$commitHash) ${rootProject.latestCommitMessage()}"
|
||||
}
|
||||
val isMainBranch = branch == "master"
|
||||
modrinth {
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren