Skip to content

Commit 8e14283

Browse files
Added change logs
1 parent af7e4f3 commit 8e14283

File tree

3 files changed

+24
-23
lines changed

3 files changed

+24
-23
lines changed

CHANGELOG.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
# Changelog
2+
All notable changes to this project will be documented in this file.
23

3-
## 2.0.32
4-
### What's Changed
5-
- Change the title of the _Recent Activity_ panel to “_Observability_
4+
## [2.0.32] - 2023-02-26
5+
### Changed
6+
- Change the title of the Recent Activity panel to “Observability
67

7-
## 2.0.31
8-
### What's Changed
9-
- Integrate Recent Activity view into new Digma tab at the bottom panel (#318)
8+
## [2.0.31] - 2023-02-23
9+
### Added
10+
- #318 Integrate Recent Activity view into new Digma tab at the bottom
11+
12+
[2.0.31]: https://github.com/digma-ai/digma-intellij-plugin/compare/v2.0.30...v2.0.31
13+
[2.0.32]: https://github.com/digma-ai/digma-intellij-plugin/compare/v2.0.31...v2.0.32
14+
[Unreleased]: https://github.com/digma-ai/digma-intellij-plugin/compare/v2.0.32...HEAD

build.gradle.kts

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import common.properties
2-
import org.jetbrains.changelog.date
32
import org.jetbrains.changelog.markdownToHTML
43
import org.jetbrains.intellij.tasks.ListProductsReleasesTask
4+
import org.jetbrains.changelog.exceptions.MissingVersionException
55
import java.util.EnumSet
66

77
fun properties(key: String) = properties(key,project)
@@ -12,7 +12,7 @@ fun properties(key: String) = properties(key,project)
1212
)
1313
plugins {
1414
id("plugin-project")
15-
id("org.jetbrains.changelog") version "1.3.1"
15+
id("org.jetbrains.changelog") version "2.0.0"
1616
id("org.jetbrains.qodana") version "0.1.13"
1717
id("common-kotlin")
1818
}
@@ -44,16 +44,6 @@ intellij {
4444
}
4545
}
4646

47-
// Configure Gradle Changelog Plugin - read more: https://github.com/JetBrains/gradle-changelog-plugin
48-
changelog {
49-
version.set(project.semanticVersion.version.get().toString())
50-
path.set("${project.projectDir}/CHANGELOG.md")
51-
//groups.set(listOf("Added", "Changed", "Deprecated", "Removed", "Fixed", "Security"))
52-
groups.set(emptyList())
53-
header.set(provider { "[${version.get()}] - ${date()}" })
54-
keepUnreleasedSection.set(false)
55-
}
56-
5747

5848
// Configure Gradle Qodana Plugin - read more: https://github.com/JetBrains/gradle-qodana-plugin
5949
qodana {
@@ -119,11 +109,18 @@ tasks {
119109
}.joinToString("\n").run { markdownToHTML(this) }
120110
)
121111

122-
// Get the latest available change notes from the changelog file
112+
val latestChangelog = try {
113+
changelog.getUnreleased()
114+
} catch (_: MissingVersionException) {
115+
changelog.getLatest()
116+
}
123117
changeNotes.set(provider {
124-
changelog.run {
125-
getOrNull(project.semanticVersion.version.get().toString()) ?: getLatest()
126-
}.toHTML()
118+
changelog.renderItem(
119+
latestChangelog
120+
.withHeader(false)
121+
.withEmptySections(false),
122+
org.jetbrains.changelog.Changelog.OutputType.HTML
123+
)
127124
})
128125
}
129126

src/main/java/org/digma/intellij/plugin/toolwindow/ThemeChangeListener.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package org.digma.intellij.plugin.toolwindow;
22

3-
import com.fasterxml.jackson.databind.ObjectMapper;
43
import com.intellij.openapi.diagnostic.Logger;
54
import com.intellij.ui.jcef.JBCefBrowser;
65
import org.apache.commons.lang3.StringUtils;

0 commit comments

Comments
 (0)