Skip to content

Commit

Permalink
Fix verifyVersions task (#112765)
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-vieira authored and davidkyle committed Sep 12, 2024
1 parent c4932f2 commit 2b426f7
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,10 @@ public void compareToAuthoritative(List<Version> authoritativeReleasedVersions)
}

private List<Version> getReleased() {
return versions.stream().filter(v -> unreleased.containsKey(v) == false).toList();
return versions.stream()
.filter(v -> v.getMajor() >= currentVersion.getMajor() - 1)
.filter(v -> unreleased.containsKey(v) == false)
.toList();
}

/**
Expand Down

0 comments on commit 2b426f7

Please sign in to comment.