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 {
402
402
// the edits to span newlines.
403
403
type DiffIntralineInfo [][2 ]int
404
404
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
+
405
412
// ChangeInput entity contains information about creating a new change.
406
413
//
407
414
// Docs: https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#change-input
@@ -418,6 +425,7 @@ type ChangeInput struct {
418
425
NewBranch bool `json:"new_branch,omitempty"`
419
426
ValidationOptions map [string ]interface {} `json:"validation_options,omitempty"`
420
427
Merge * MergeInput `json:"merge,omitempty"`
428
+ Patch * ApplyPatchInput `json:"patch,omitempty"`
421
429
Author * AccountInput `json:"author,omitempty"`
422
430
Notify string `json:"notify,omitempty"`
423
431
NotifyDetails string `json:"notify_details,omitempty"`
You can’t perform that action at this time.
0 commit comments