3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-12-26 16:12:42 +01:00

Include link to commit in autopublished changelog

Dieser Commit ist enthalten in:
Nassim Jahnke 2023-08-11 16:16:23 +10:00
Ursprung 9ed074d0d5
Commit 50176dc317
2 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen

Datei anzeigen

@ -38,7 +38,7 @@ fun Project.latestCommitHash(): String {
return byteOut.toString(Charsets.UTF_8.name()).trim() return byteOut.toString(Charsets.UTF_8.name()).trim()
} }
fun Project.lastCommitMessage(): String { fun Project.latestCommitMessage(): String {
val byteOut = ByteArrayOutputStream() val byteOut = ByteArrayOutputStream()
exec { exec {
commandLine = listOf("git", "log", "-1", "--pretty=%B") commandLine = listOf("git", "log", "-1", "--pretty=%B")

Datei anzeigen

@ -50,7 +50,7 @@ val suffixedVersion = if (isRelease) baseVersion else baseVersion + "+" + System
val changelogContent = if (isRelease) { val changelogContent = if (isRelease) {
"See [GitHub](https://github.com/ViaVersion/ViaVersion) for release notes." "See [GitHub](https://github.com/ViaVersion/ViaVersion) for release notes."
} else { } else {
rootProject.lastCommitMessage() "[${rootProject.latestCommitHash()}](https://github.com/ViaVersion/ViaVersion/commit/${rootProject.latestCommitHash()}) ${rootProject.latestCommitMessage()}"
} }
val isMainBranch = branch == "master" val isMainBranch = branch == "master"
modrinth { modrinth {