Skip to content

Commit 235fa61

Browse files
authored
Implement parents_data in RevisionInfo (#157)
Introduced in https://gerrit-review.git.corp.google.com/c/gerrit/+/376877. Signed-off-by: Roman Mohr <rmohr@google.com>
1 parent 40e4f30 commit 235fa61

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

changes.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,17 @@ type MergeInput struct {
487487
AllowConflicts bool `json:"allow_conflicts,omitempty"`
488488
}
489489

490+
// The ParentInfo entity contains information about the parent commit of a patch-set.
491+
type ParentInfo struct {
492+
BranchName string `json:"branch_name,omitempty"`
493+
CommitID string `json:"commit_id,omitempty"`
494+
IsMergedInTargetBranch bool `json:"is_merged_in_target_branch"`
495+
ChangeID string `json:"change_id,omitempty"`
496+
ChangeNumber int `json:"change_number,omitempty"`
497+
PatchSetNumber int `json:"patch_set_number,omitempty"`
498+
ChangeStatus string `json:"change_status,omitempty"`
499+
}
500+
490501
// RevisionInfo entity contains information about a patch set.
491502
type RevisionInfo struct {
492503
Kind RevisionKind `json:"kind,omitempty"`
@@ -501,6 +512,7 @@ type RevisionInfo struct {
501512
Actions map[string]ActionInfo `json:"actions,omitempty"`
502513
Reviewed bool `json:"reviewed,omitempty"`
503514
MessageWithFooter string `json:"messageWithFooter,omitempty"`
515+
ParentsData []ParentInfo `json:"parents_data,omitempty"`
504516
}
505517

506518
// CommentInfo entity contains information about an inline comment.

0 commit comments

Comments
 (0)