Skip to content

Commit

Permalink
Do not add release name for upcoming releases
Browse files Browse the repository at this point in the history
We can infer the release name from the target date by just formatting it
to display the month and year.

Ref: kubernetes/website#45770

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
  • Loading branch information
saschagrunert committed Apr 15, 2024
1 parent 2fe12ac commit 0be8073
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cmd/schedule-builder/cmd/markdown.go
Original file line number Diff line number Diff line change
Expand Up @@ -286,11 +286,9 @@ func updatePatchSchedule(refTime time.Time, schedule PatchSchedule, eolBranches
nextCherryPickDeadline := time.Date(latestDate.Year(), latestDate.Month(), cherryPickDay, 0, 0, 0, 0, time.UTC)
nextTargetDate := time.Date(latestDate.Year(), latestDate.Month(), targetDateDay, 0, 0, 0, 0, time.UTC)

releaseName := nextTargetDate.Format("January 2006")
logrus.Infof("Adding new upcoming release for %s", releaseName)
logrus.Infof("Adding new upcoming release for %s", nextTargetDate.Format("January 2006"))

newUpcomingReleases = append(newUpcomingReleases, &PatchRelease{
Release: releaseName,
CherryPickDeadline: nextCherryPickDeadline.Format(refDate),
TargetDate: nextTargetDate.Format(refDate),
})
Expand Down

0 comments on commit 0be8073

Please sign in to comment.