Fix automated release schedule message for releases >= 1.26

With Backstage v1.25 being released a month early, the automated merge
messages don't reflect the actual/effective release date. This change
adjusts the date to reflect that updated release schedule.

Signed-off-by: Brian Phillips <28457+brianphillips@users.noreply.github.com>
This commit is contained in:
Brian Phillips
2024-04-05 07:10:59 -05:00
parent b7f07703d1
commit f1cbcb3b94
+6 -1
View File
@@ -60,7 +60,12 @@ function getReleaseSchedule() {
return Array(100)
.fill(0)
.map((_, i) => {
const date = getReleaseOfMonth(firstReleaseYear, firstReleaseMonth + i);
// the 1.24 and 1.25 releases were both released in March 2024
const modifier = i >= 25 ? -1 : 0;
const date = getReleaseOfMonth(
firstReleaseYear,
firstReleaseMonth + i + modifier,
);
return { version: `1.${i}.0`, date };
});
}