mirror of
https://github.com/JetBrains/intellij-platform-plugin-template.git
synced 2024-10-27 20:44:05 +00:00
Fallback to the unreleased change notes when the plugin in current was not released yet
This commit is contained in:
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…
Reference in New Issue
Block a user