From 5fb2643f7578202fd6c8e14c802096915f5b246c Mon Sep 17 00:00:00 2001 From: Barry Gordon <896971+brrygrdn@users.noreply.github.com> Date: Wed, 26 Apr 2023 11:30:24 +0100 Subject: [PATCH] DependencyGroup should be omitted if empty, can also be present in Updates (#103) --- internal/model/update.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/model/update.go b/internal/model/update.go index 32d8ccd..7a79590 100644 --- a/internal/model/update.go +++ b/internal/model/update.go @@ -16,7 +16,7 @@ type CreatePullRequest struct { PRTitle string `json:"pr-title" yaml:"pr-title,omitempty"` PRBody string `json:"pr-body" yaml:"pr-body,omitempty"` CommitMessage string `json:"commit-message" yaml:"commit-message,omitempty"` - DependencyGroup map[string]any `json:"dependency-group" yaml:"dependency-group"` + DependencyGroup map[string]any `json:"dependency-group" yaml:"dependency-group,omitempty"` } type UpdatePullRequest struct { @@ -26,6 +26,7 @@ type UpdatePullRequest struct { PRTitle string `json:"pr-title" yaml:"pr-title,omitempty"` PRBody string `json:"pr-body" yaml:"pr-body,omitempty"` CommitMessage string `json:"commit-message" yaml:"commit-message,omitempty"` + DependencyGroup map[string]any `json:"dependency-group" yaml:"dependency-group,omitempty"` } type DependencyFile struct {