Skip to content

Commit 5f0bd24

Browse files
committed
support 4.x patches
Signed-off-by: Kai Kreuzer <kai@openhab.org>
1 parent 1cfd707 commit 5f0bd24

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

launch/build-patch.gradle

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,12 @@ task buildChangelog {
9292
category.repos.each { repo ->
9393

9494
def curlURL = ""
95-
def labelString = "%20label:%22backported%22%20-label:%22regression%22"
95+
// Choose correct backport label depending on version (4.x uses 'backported4')
96+
def labelName = "backported"
97+
if (openHABPatch?.trim()?.startsWith("4.")) {
98+
labelName = "backported4"
99+
}
100+
def labelString = "%20label:%22${labelName}%22%20-label:%22regression%22"
96101
def repoName = repo.name
97102
def addonName = repo.addonName
98103

0 commit comments

Comments
 (0)