Skip to content

Commit

Permalink
fixing empty changelog in built plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
ahus1 committed Apr 22, 2023
1 parent 1b4390f commit 43f317c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
6 changes: 3 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
### Fixed

- off-screen rendering now always disabled for old Linux/macOS versions and not configurable (#212)

### Security

## [0.2.2] - 2023-03-29
### Security

## 0.2.2 - 2023-03-29

### Fixed
- undo off-screen rendering as it interferes with keyboard access on Linux/macOS (#212)
Expand Down
10 changes: 9 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import io.gitlab.arturbosch.detekt.Detekt
import org.jetbrains.changelog.Changelog
import org.jetbrains.changelog.date
import org.jetbrains.changelog.markdownToHTML
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
Expand Down Expand Up @@ -121,7 +122,14 @@ tasks {
// Get the latest available change notes from the changelog file
changeNotes.set(
provider {
changelog.getLatest().toHTML()
with(changelog) {
renderItem(
(getOrNull(properties("pluginVersion")) ?: getUnreleased())
.withHeader(false)
.withEmptySections(false),
Changelog.OutputType.HTML,
)
}
}
)
}
Expand Down

0 comments on commit 43f317c

Please sign in to comment.