Skip to content

Commit

Permalink
initialize empty group slices
Browse files Browse the repository at this point in the history
  • Loading branch information
jakecoffman committed Aug 23, 2023
1 parent e6f70bf commit 71be13c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmd/dependabot/internal/cmd/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,12 @@ func processInput(input *model.Input) {
if job.SecurityAdvisories == nil {
job.SecurityAdvisories = []model.Advisory{}
}
if job.ExistingGroupPullRequests == nil {
job.ExistingGroupPullRequests = []model.ExistingGroupPR{}
}
if job.DependencyGroups == nil {
job.DependencyGroups = []model.Group{}
}

// As a convenience, fill in a git_source if credentials are in the environment and a git_source
// doesn't already exist. This way the user doesn't run out of calls from being anonymous.
Expand Down

0 comments on commit 71be13c

Please sign in to comment.