From 4b281b4d389e8a8ebdaae968b20a55a38ba07942 Mon Sep 17 00:00:00 2001 From: Jamie Magee Date: Tue, 9 Jan 2024 17:33:02 +0000 Subject: [PATCH] Set `AllowedUpdates` to `all` if not explicitly set (#228) --- cmd/dependabot/internal/cmd/update.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmd/dependabot/internal/cmd/update.go b/cmd/dependabot/internal/cmd/update.go index 429bcb2..5215294 100644 --- a/cmd/dependabot/internal/cmd/update.go +++ b/cmd/dependabot/internal/cmd/update.go @@ -256,6 +256,11 @@ func processInput(input *model.Input, flags *UpdateFlags) { job := &input.Job // a few of the fields need to be initialized instead of null, // it would be nice if the updater didn't care + if job.AllowedUpdates == nil { + job.AllowedUpdates = []model.Allowed{{ + UpdateType: "all", + }} + } if job.ExistingPullRequests == nil { job.ExistingPullRequests = [][]model.ExistingPR{} }