Fallback to the unreleased change notes when the plugin in current was not released yet

pull/342/head
Jakub Chrzanowski 1 year ago committed by Jakub Chrzanowski
parent 42f6ce7c9e
commit e95cbd35b0

@ -8,6 +8,9 @@
- Dependencies - upgrade `org.jetbrains.kotlin.jvm` to `1.7.22`
- Dependencies (GitHub Actions) - upgrade `JetBrains/qodana-action` to `v2022.2.3`
### Fixed
- Fallback to the unreleased change notes when the plugin in current was not released yet
## [1.3.0] - 2022-11-17
### Added

@ -87,7 +87,8 @@ tasks {
changeNotes.set(provider {
with(changelog) {
renderItem(
getOrNull(properties("pluginVersion")) ?: getLatest(),
getOrNull(properties("pluginVersion"))
?: runCatching { getLatest() }.getOrElse { getUnreleased() },
Changelog.OutputType.HTML,
)
}

Loading…
Cancel
Save