Run go run main.go render checklist -v 1.0.0 from the cli directory, and verify that the date output in the Hey [author] quote is the correct date for next Thursday:
Hey [author]. We will cut the 1.0.0 release on Thursday October 12, 2023. I plan to circle back and bump this PR...
I believe the original issue was because the first Monday in January 2006 was January the 2nd, not January the 1st:
I also added the month, which I though should be included. Previously, the command would render "We will cut the release on Thursday 10, 2023", which felt a bit odd without the name of month included. Also updated the test to reflect this.
Updates the CLI
NextReleaseDate
util to display the correct next release date:To test:
Run
go run main.go render checklist -v 1.0.0
from thecli
directory, and verify that the date output in theHey [author]
quote is the correct date for next Thursday:I believe the original issue was because the first Monday in January 2006 was January the 2nd, not January the 1st:
I also added the month, which I though should be included. Previously, the command would render "We will cut the release on Thursday 10, 2023", which felt a bit odd without the name of month included. Also updated the test to reflect this.