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:
@@ -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 };
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user