File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -402,6 +402,13 @@ type FixReplacementInfo struct {
402402// the edits to span newlines.
403403type 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"`
You can’t perform that action at this time.
0 commit comments