Skip to content

Commit

Permalink
Merge pull request #3401 from xmudrii/fix-pub-bot-issue
Browse files Browse the repository at this point in the history
Create publishing-bot issue when cutting rc.0
  • Loading branch information
k8s-ci-robot authored Dec 15, 2023
2 parents d46106a + 2df0227 commit b011a95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/anago/release.go
Original file line number Diff line number Diff line change
Expand Up @@ -546,9 +546,9 @@ func (d *DefaultRelease) CreateAnnouncement() error {
return fmt.Errorf("creating the announcement: %w", err)
}

// Check if we are releasing is the initial minor (eg 1.20.0),
// 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 && len(primeSemver.Pre) == 0 &&
if primeSemver.Patch == 0 && d.options.ReleaseType == release.ReleaseTypeRC &&
d.options.ReleaseBranch != git.DefaultBranch {
if d.options.NoMock {
// Create the publishing bot issue
Expand Down

0 comments on commit b011a95

Please sign in to comment.