Skip to content

Commit 650ad12

Browse files
authored
Add missing Patch field to ChangeInfo (#188)
1 parent 31687dc commit 650ad12

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

changes.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,13 @@ type FixReplacementInfo struct {
402402
// the edits to span newlines.
403403
type DiffIntralineInfo [][2]int
404404

405+
// ApplyPatchInput contains information about a patch to apply to a Gerrit CL.
406+
// See https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#applypatch-input.
407+
type ApplyPatchInput struct {
408+
Patch string `json:"patch"`
409+
AllowConflicts bool `json:"allow_conflicts,omitempty"`
410+
}
411+
405412
// ChangeInput entity contains information about creating a new change.
406413
//
407414
// Docs: https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#change-input
@@ -418,6 +425,7 @@ type ChangeInput struct {
418425
NewBranch bool `json:"new_branch,omitempty"`
419426
ValidationOptions map[string]interface{} `json:"validation_options,omitempty"`
420427
Merge *MergeInput `json:"merge,omitempty"`
428+
Patch *ApplyPatchInput `json:"patch,omitempty"`
421429
Author *AccountInput `json:"author,omitempty"`
422430
Notify string `json:"notify,omitempty"`
423431
NotifyDetails string `json:"notify_details,omitempty"`

0 commit comments

Comments
 (0)