Skip to content

Commit

Permalink
fixup! fixup! fixup! update code
Browse files Browse the repository at this point in the history
  • Loading branch information
minh.tran committed Mar 13, 2021
1 parent 0efd22a commit 1f83752
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
### Fixed

### Security
<!-- end unreleased -->

## 1.1.6
### Changed
Expand Down
14 changes: 5 additions & 9 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -106,15 +106,11 @@ tasks {
// Get the latest available change notes from the changelog file
changeNotes(
closure {
var msg = ""
changelog.getAll().forEach { (key, value) ->
run {
if (key != "[Unreleased]") {
msg += "<h1>${value.version}</h1>${value.toHTML()}<br>"
}
}
}
msg
File("./CHANGELOG.md")
.readText()
.split("<!-- end unreleased -->")[1].lines()
.joinToString("\n")
.run { markdownToHTML(this) }
}
)
}
Expand Down

0 comments on commit 1f83752

Please sign in to comment.