Skip to content

Commit

Permalink
Remove unnecessary backport config since we don't backport TO master
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-vieira committed Oct 27, 2021
1 parent cadc0c3 commit e82a70c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions .backportrc.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
{
"upstream": "elastic/elasticsearch",
"targetBranchChoices": [
{ "name": "master", "checked": true },
"7.16",
"7.15",
"7.14",
"6.8"
],
"targetPRLabels": ["backport"],
"branchLabelMapping": {
"^v8.0.0$": "master",
"^v(\\d+).(\\d+).\\d+$": "$1.$2"
}
}
3 changes: 1 addition & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,7 @@ tasks.register("verifyVersions") {

// Make sure backport bot config file is up to date
JsonNode backportConfig = new ObjectMapper().readTree(file(".backportrc.json"))
List<BwcVersions.UnreleasedVersionInfo> unreleased = BuildParams.bwcVersions.unreleased.collect { BuildParams.bwcVersions.unreleasedInfo(it) }
unreleased.each { unreleasedVersion ->
BuildParams.bwcVersions.forPreviousUnreleased { unreleasedVersion ->
boolean valid = backportConfig.get("targetBranchChoices").elements().any { branchChoice ->
if (branchChoice.isObject()) {
return branchChoice.get("name").textValue() == unreleasedVersion.branch
Expand Down

0 comments on commit e82a70c

Please sign in to comment.