diff options
Diffstat (limited to 'buildSrc/src/main/kotlin')
-rw-r--r-- | buildSrc/src/main/kotlin/ca/allanwang/kau/ChangelogGenerator.kt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/buildSrc/src/main/kotlin/ca/allanwang/kau/ChangelogGenerator.kt b/buildSrc/src/main/kotlin/ca/allanwang/kau/ChangelogGenerator.kt index 8200484..5e21b7e 100644 --- a/buildSrc/src/main/kotlin/ca/allanwang/kau/ChangelogGenerator.kt +++ b/buildSrc/src/main/kotlin/ca/allanwang/kau/ChangelogGenerator.kt @@ -72,7 +72,7 @@ open class ChangelogGenerator(private val project: Project) { } @JvmOverloads - fun generate(inputUri: String, outputUri: String = "${project.rootDir}/docs/Changelog.md") { + fun generate(inputUri: String, outputUri: String = "${project.rootDir}/docs/Changelog.md"): List<ChangelogEntry> { val entries = read(inputUri) val output = File(outputUri) if (output.exists()) { @@ -100,5 +100,6 @@ open class ChangelogGenerator(private val project: Project) { } output.writeText(markdown) println("Generated changelog at ${output.absolutePath}") + return entries } }
\ No newline at end of file |