Skip to content

Commit

Permalink
Use Git commit message as changelog if none is found
Browse files Browse the repository at this point in the history
  • Loading branch information
Insprill committed Apr 28, 2024
1 parent 2a1585a commit 4182f66
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -249,5 +249,12 @@ fun readChangelog(version: String): String {
out.append(line).append("\n")
}
}

if (out.isBlank()) {
out.append(grgit.head().abbreviatedId)
out.append(": ")
out.append(grgit.head().fullMessage)
}

return out.toString().trim()
}

0 comments on commit 4182f66

Please sign in to comment.