Skip to content

Commit df1bf83

Browse files
authored
Merge pull request #95 from vitessio/fix-date-parsing
Fix date parsing in the issue
2 parents 5184bec + 3efdc63 commit df1bf83

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

go/releaser/issue.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,8 @@ func (s *State) LoadIssue() {
380380
case stateReadingItem:
381381
// divers
382382
if strings.HasPrefix(line, dateItem) {
383-
nline := strings.TrimSpace(line[len(dateItem) : len(line)-2])
383+
nline := strings.TrimSpace(line[len(dateItem):])
384+
nline = strings.ReplaceAll(nline, ".", "") // remove the period at the end of the line
384385
parsedDate, err := time.Parse("Mon _2 Jan 2006", nline)
385386
if err != nil {
386387
utils.LogPanic(err, "failed to parse the date from the release issue body (%s)", nline)

0 commit comments

Comments
 (0)