diff --git a/hack/tools/release/notes/main.go b/hack/tools/release/notes/main.go index 2417667dc974..860fd702a1c8 100644 --- a/hack/tools/release/notes/main.go +++ b/hack/tools/release/notes/main.go @@ -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 }