From 0dcca8165be83bbfb9c90265107753a341b53868 Mon Sep 17 00:00:00 2001 From: Gerrit91 Date: Mon, 23 Oct 2023 10:50:53 +0200 Subject: [PATCH] Same validation on release aggregration. --- pkg/webhooks/github/actions/aggregate_releases.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/webhooks/github/actions/aggregate_releases.go b/pkg/webhooks/github/actions/aggregate_releases.go index 2faee6e..04b5aa5 100644 --- a/pkg/webhooks/github/actions/aggregate_releases.go +++ b/pkg/webhooks/github/actions/aggregate_releases.go @@ -62,13 +62,13 @@ func NewAggregateReleases(logger *zap.SugaredLogger, client *clients.Github, raw if typedConfig.Branch != nil { branch = *typedConfig.Branch } - if typedConfig.BranchBase != nil { + if typedConfig.BranchBase != nil && *typedConfig.BranchBase != "" { branchBase = *typedConfig.BranchBase } if typedConfig.CommitMsgTemplate != nil { commitMessageTemplate = *typedConfig.CommitMsgTemplate } - if typedConfig.PullRequestTitle != nil { + if typedConfig.PullRequestTitle != nil && *typedConfig.PullRequestTitle != "" { pullRequestTitle = *typedConfig.PullRequestTitle }