There was an error while loading. Please reload this page.
1 parent 1cfd707 commit 5f0bd24Copy full SHA for 5f0bd24
1 file changed
launch/build-patch.gradle
@@ -92,7 +92,12 @@ task buildChangelog {
92
category.repos.each { repo ->
93
94
def curlURL = ""
95
- def labelString = "%20label:%22backported%22%20-label:%22regression%22"
+ // 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"
101
def repoName = repo.name
102
def addonName = repo.addonName
103
0 commit comments