Skip to content

Commit db91e1a

Browse files
committed
Update backport config file to use main as default branch
1 parent 17265e4 commit db91e1a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.backportrc.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"upstream": "elastic/elasticsearch",
33
"targetBranchChoices": [
4-
"master",
4+
"main",
55
"8.3",
66
"8.2",
77
"8.1",
@@ -11,7 +11,7 @@
1111
],
1212
"targetPRLabels": ["backport"],
1313
"branchLabelMapping": {
14-
"^v8.4.0$": "master",
14+
"^v8.4.0$": "main",
1515
"^v(\\d+).(\\d+).\\d+(?:-(?:alpha|beta|rc)\\d+)?$": "$1.$2"
1616
}
1717
}

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ tasks.register("verifyVersions") {
122122
throw new GradleException("No branch choice exists for development branch ${unreleasedVersion.branch} in .backportrc.json.")
123123
}
124124
}
125-
String versionMapping = backportConfig.get("branchLabelMapping").fields().find { it.value.textValue() == 'master' }.key
125+
String versionMapping = backportConfig.get("branchLabelMapping").fields().find { it.value.textValue() == 'main' }.key
126126
String expectedMapping = "^v${versions.elasticsearch.replaceAll('-SNAPSHOT', '')}\$"
127127
if (versionMapping != expectedMapping) {
128128
throw new GradleException("Backport label mapping for branch 'master' is '${versionMapping}' but should be " +

0 commit comments

Comments
 (0)