Skip to content

Commit

Permalink
Update CherryPickInput to support new fields (#165)
Browse files Browse the repository at this point in the history
Gerrit has introduced new fields to finely tune behavior when
cherry-picking changes such as notification support and allowing for
merge conflicts to go through. This changes add all of the new fields
available as of gerrit v3.10.0.

Co-authored-by: Jimmy Trinh <[email protected]>
  • Loading branch information
jhtrinh and jtrinh-anet authored May 24, 2024
1 parent c725a0f commit 0983e87
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions changes.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,18 @@ type ChangeMessageInfo struct {

// CherryPickInput entity contains information for cherry-picking a change to a new branch.
type CherryPickInput struct {
Message string `json:"message"`
Destination string `json:"destination"`
Message string `json:"message,omitempty"`
Destination string `json:"destination"`
Base string `json:"base,omitempty"`
Parent int `json:"parent,omitempty"`
Notify string `json:"notify,omitempty"`
NotifyDetails map[RecipientType]NotifyInfo `json:"notify_details,omitempty"`
KeepReviewers bool `json:"keep_reviewers,omitempty"`
AllowConflicts bool `json:"allow_conflicts,omitempty"`
Topic string `json:"topic,omitempty"`
AllowEmpty bool `json:"allow_empty,omitempty"`
CommitterEmail string `json:"committer_email,omitempty"`
ValidationOptions map[string]string `json:"validation_options,omitempty"`
}

// CommentRange entity describes the range of an inline comment.
Expand Down

0 comments on commit 0983e87

Please sign in to comment.