Skip to content

Commit 093ce26

Browse files
authored
[8.x] Modify verifyVersions to care about 8.x rather than main for backport config (#114957)
1 parent d74e7a7 commit 093ce26

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,11 +204,11 @@ tasks.register("verifyVersions") {
204204
throw new GradleException("No branch choice exists for development branch ${unreleasedVersion.branch} in .backportrc.json.")
205205
}
206206
}
207-
String versionMapping = backportConfig.get("branchLabelMapping").fields().find { it.value.textValue() == 'main' }.key
207+
String versionMapping = backportConfig.get("branchLabelMapping").fields().find { it.value.textValue() == '8.x' }.key
208208
String expectedMapping = "^v${versions.elasticsearch.replaceAll('-SNAPSHOT', '')}\$"
209209
if (versionMapping != expectedMapping) {
210210
throw new GradleException(
211-
"Backport label mapping for branch 'main' is '${versionMapping}' but should be " +
211+
"Backport label mapping for branch '8.x' is '${versionMapping}' but should be " +
212212
"'${expectedMapping}'. Update .backportrc.json."
213213
)
214214
}

0 commit comments

Comments
 (0)