From 211301885935500bfb7f7d0a490ff48c9f695fdc Mon Sep 17 00:00:00 2001 From: Jake Coffman Date: Wed, 23 Aug 2023 14:54:39 -0500 Subject: [PATCH] initialize empty group slices (#173) --- cmd/dependabot/internal/cmd/update.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cmd/dependabot/internal/cmd/update.go b/cmd/dependabot/internal/cmd/update.go index 0d49a1c..b4f2fe6 100644 --- a/cmd/dependabot/internal/cmd/update.go +++ b/cmd/dependabot/internal/cmd/update.go @@ -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.