Skip to content

Commit

Permalink
Update SubmitInput entity to support new fields (#163)
Browse files Browse the repository at this point in the history
New fields have been added to SubmitInput to support features such as
submitting on behalf of other users, and notification handling. The
fields have been all listed as optional to match the current API (as of
3.8+).
  • Loading branch information
jtrinh-anet authored Apr 27, 2024
1 parent e8bb8e4 commit bb1cabe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion changes.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,10 @@ type SubmitRecord struct {

// SubmitInput entity contains information for submitting a change.
type SubmitInput struct {
WaitForMerge bool `json:"wait_for_merge"`
OnBehalfOf string `json:"on_behalf_of,omitempty"`
Notify string `json:"notify,omitempty"`
NotifyDetails map[RecipientType]NotifyInfo `json:"notify_details,omitempty"`
WaitForMerge bool `json:"wait_for_merge,omitempty"`
}

// SubmitInfo entity contains information about the change status after submitting.
Expand Down

0 comments on commit bb1cabe

Please sign in to comment.