diff --git a/build-logic/src/main/kotlin/extensions.kt b/build-logic/src/main/kotlin/extensions.kt index 170e570cc..7300afd06 100644 --- a/build-logic/src/main/kotlin/extensions.kt +++ b/build-logic/src/main/kotlin/extensions.kt @@ -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") diff --git a/universal/build.gradle.kts b/universal/build.gradle.kts index 4c29f314b..480e2e05e 100644 --- a/universal/build.gradle.kts +++ b/universal/build.gradle.kts @@ -50,7 +50,7 @@ val suffixedVersion = if (isRelease) baseVersion else baseVersion + "+" + System val changelogContent = if (isRelease) { "See [GitHub](https://github.com/ViaVersion/ViaVersion) for release notes." } else { - rootProject.lastCommitMessage() + "[${rootProject.latestCommitHash()}](https://github.com/ViaVersion/ViaVersion/commit/${rootProject.latestCommitHash()}) ${rootProject.latestCommitMessage()}" } val isMainBranch = branch == "master" modrinth {