Skip to content

Commit

Permalink
Merge pull request #9958 from g-gaston/fix-release-notes-tool-defaulting
Browse files Browse the repository at this point in the history
🐛 Fix defaulting logic in release notes tool
  • Loading branch information
k8s-ci-robot committed Jan 4, 2024
2 parents 624f892 + 2461779 commit 533696a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hack/tools/release/notes/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ func validateConfig(config *notesCmdConfig) error {
// computeConfigDefaults calculates the value the non specified configuration fields
// based on the set fields.
func computeConfigDefaults(config *notesCmdConfig) error {
if config.fromRef != "" && config.branch != "" {
if config.fromRef != "" && config.branch != "" && config.toRef != "" {
return nil
}

Expand Down

0 comments on commit 533696a

Please sign in to comment.