Skip to content

Commit

Permalink
Set AllowedUpdates to all if not explicitly set
Browse files Browse the repository at this point in the history
  • Loading branch information
JamieMagee committed Jan 9, 2024
1 parent 61fef79 commit 5c12fe3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/dependabot/internal/cmd/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}
}
Expand Down

0 comments on commit 5c12fe3

Please sign in to comment.