Skip to content

Commit

Permalink
Try fixing changelog release
Browse files Browse the repository at this point in the history
  • Loading branch information
farost committed Feb 28, 2024
1 parent e9ed28c commit 04388d7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
2 changes: 0 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

## Unreleased

## 0.2.0 - 2024-02-28

### Added

- `.typeql` to supported extensions.
Expand Down
13 changes: 9 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import org.jetbrains.changelog.markdownToHTML
import org.jetbrains.changelog.Changelog
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

fun properties(key: String) = project.findProperty(key).toString()
Expand Down Expand Up @@ -42,7 +43,7 @@ intellij {

// Configure Gradle Changelog Plugin - read more: https://github.com/JetBrains/gradle-changelog-plugin
changelog {
version.set(properties("pluginVersion"))
header.set(provider { version.get() })
groups.set(emptyList())
}

Expand Down Expand Up @@ -89,9 +90,13 @@ tasks {

// Get the latest available change notes from the changelog file
changeNotes.set(provider {
changelog.run {
getOrNull(properties("pluginVersion")) ?: getLatest()
}.toHTML()
changelog.renderItem(
changelog
.getUnreleased()
.withHeader(false)
.withEmptySections(false),
Changelog.OutputType.HTML
)
})
}

Expand Down

0 comments on commit 04388d7

Please sign in to comment.