Skip to content

Commit

Permalink
Merge pull request #3849 from xmudrii/pubbot-issue-rc.0
Browse files Browse the repository at this point in the history
Create publishing-bot issue only for rc.0 release
  • Loading branch information
k8s-ci-robot authored Dec 4, 2024
2 parents 7aef8df + 4dd8508 commit 2262891
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/anago/release.go
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,10 @@ func (d *DefaultRelease) CreateAnnouncement() error {

// Check if we are releasing the initial rc release (eg 1.20.0-rc.0),
// and we are working on a release-M.m branch
if primeSemver.Patch == 0 && d.options.ReleaseType == release.ReleaseTypeRC &&
if primeSemver.Patch == 0 &&
len(primeSemver.Pre) == 2 &&
primeSemver.Pre[0].String() == "rc" &&
primeSemver.Pre[1].VersionNum == 0 &&
d.options.ReleaseBranch != git.DefaultBranch {
if d.options.NoMock {
// Create the publishing bot issue
Expand Down

0 comments on commit 2262891

Please sign in to comment.