Skip to content

Commit

Permalink
Same validation on release aggregration.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit91 committed Oct 23, 2023
1 parent 575b5c9 commit 0dcca81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/webhooks/github/actions/aggregate_releases.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 0dcca81

Please sign in to comment.