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 55c89f9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -249,5 +249,10 @@ fun readChangelog(version: String): String {
out.append(line).append("\n")
}
}

if (out.isBlank()) {
out.append("[${grgit.head().abbreviatedId}](${grgit.remote.list().first().url}/commit/${grgit.head().id}): ${grgit.head().fullMessage}")
}

return out.toString().trim()
}

0 comments on commit 55c89f9

Please sign in to comment.