This is an automated email from the ASF dual-hosted git repository.
lhotari pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pulsar-site.git
The following commit(s) were added to refs/heads/main by this push:
new ff035d3cdff Return latest feature release series so that doc-tool.sh
will update 4.1.x no that it has expired
ff035d3cdff is described below
commit ff035d3cdffd0157f9c4af44717263574f202484
Author: Lari Hotari <[email protected]>
AuthorDate: Tue Mar 17 10:08:12 2026 +0200
Return latest feature release series so that doc-tool.sh will update 4.1.x
no that it has expired
---
scripts/supported-versions.js | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/scripts/supported-versions.js b/scripts/supported-versions.js
index 94e0ba9108d..6f32a8de13d 100644
--- a/scripts/supported-versions.js
+++ b/scripts/supported-versions.js
@@ -35,7 +35,10 @@ function getSupportedVersionBranches(releases) {
.sort((a, b) => semver.rcompare(b.version, a.version))
.map(release => `${release.version.major}.${release.version.minor}.x`);
- return supportedVersions;
+ const latestBranch =
`${releaseList[0].version.major}.${releaseList[0].version.minor}.x`;
+ return supportedVersions.includes(latestBranch)
+ ? supportedVersions
+ : [...supportedVersions, latestBranch];
}
const supported = getSupportedVersionBranches(releases);