Skip to content

Commit e922b03

Browse files
committed
Fix introduction text for milestone release notes
Signed-off-by: Kai Kreuzer <kai@openhab.org>
1 parent fe51491 commit e922b03

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

launch/build.gradle

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,15 @@ task buildChangelog {
245245
}
246246
}
247247

248-
outputText = outputText + "\nThis patch release contains the following bug fixes:\n"
248+
// Choose output text based on whether this is a milestone or patch release
249+
if (isMilestoneRelease) {
250+
// Extract the major.minor version (a.b) from milestone version (a.b.c.Mx)
251+
def baseVersion = openHABVersion.replaceAll(/\.M\d+$/, '') // Remove .Mx suffix
252+
def majorMinorVersion = baseVersion.replaceAll(/\.\d+$/, '') // Remove patch version to get major.minor
253+
outputText = outputText + "\nThis is a monthly milestone build for the upcoming openHAB ${majorMinorVersion} release, which brings many fixes and improvements.\n"
254+
} else {
255+
outputText = outputText + "\nThis patch release contains the following bug fixes:\n"
256+
}
249257

250258
["Core", "Add-ons", "UIs"].each {categoryName ->
251259

0 commit comments

Comments
 (0)