Skip to content

Commit 9156cb5

Browse files
committed
cmd/releasebot: add check for "create first minor release milestone" step
The release process now documents the step of creating the first minor release milestone when issuing a major Go release. That happens before the 'releasebot -mode=prepare' step. Add an automated check for this so that we don't need to manually verify whether it was done or not. (Future release process improvements may include automatically making the milestone. That is better suited to be in scope of golang/go#40279.) Fixes golang/go#44404. Change-Id: I0ee5ff270ceb66d4dea219aad3c49f77b9d21e2f Reviewed-on: https://go-review.googlesource.com/c/build/+/294249 Trust: Dmitri Shuralyov <[email protected]> Run-TryBot: Dmitri Shuralyov <[email protected]> TryBot-Result: Go Bot <[email protected]> Reviewed-by: Alexander Rakoczy <[email protected]> Reviewed-by: Carlos Amedee <[email protected]>
1 parent fc63a04 commit 9156cb5

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

cmd/releasebot/main.go

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,15 @@ func main() {
167167
}
168168
w.NextMilestone, err = getMilestone(nextV)
169169
if err != nil {
170-
log.Fatalf("cannot find the next GitHub milestone after release %s: %v", w.Version, err)
170+
log.Fatalf("cannot find %s, the next GitHub milestone after release %s: %v", nextV, w.Version, err)
171+
}
172+
}
173+
// For major releases (go1.X), also check the "create first minor release milestone"
174+
// step in the release process wasn't accidentally missed. See issue 44404.
175+
if !w.BetaRelease && !w.RCRelease && strings.Count(w.Version, ".") == 1 {
176+
firstMinor := w.Version + ".1"
177+
if _, err := getMilestone(firstMinor); err != nil {
178+
log.Fatalf("cannot find %s, the first minor release GitHub milestone after major release %s: %v", firstMinor, w.Version, err)
171179
}
172180
}
173181

0 commit comments

Comments
 (0)