Skip to content

Commit

Permalink
DependencyGroup should be omitted if empty, can also be present in Up…
Browse files Browse the repository at this point in the history
…dates (#103)
  • Loading branch information
brrygrdn authored Apr 26, 2023
1 parent 997ba0e commit 5fb2643
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/model/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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 {
Expand Down

0 comments on commit 5fb2643

Please sign in to comment.