Skip to content

Commit

Permalink
Implement parents_data in RevisionInfo (#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
rmohr authored Jan 13, 2024
1 parent 40e4f30 commit 235fa61
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions changes.go
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,17 @@ type MergeInput struct {
AllowConflicts bool `json:"allow_conflicts,omitempty"`
}

// The ParentInfo entity contains information about the parent commit of a patch-set.
type ParentInfo struct {
BranchName string `json:"branch_name,omitempty"`
CommitID string `json:"commit_id,omitempty"`
IsMergedInTargetBranch bool `json:"is_merged_in_target_branch"`
ChangeID string `json:"change_id,omitempty"`
ChangeNumber int `json:"change_number,omitempty"`
PatchSetNumber int `json:"patch_set_number,omitempty"`
ChangeStatus string `json:"change_status,omitempty"`
}

// RevisionInfo entity contains information about a patch set.
type RevisionInfo struct {
Kind RevisionKind `json:"kind,omitempty"`
Expand All @@ -501,6 +512,7 @@ type RevisionInfo struct {
Actions map[string]ActionInfo `json:"actions,omitempty"`
Reviewed bool `json:"reviewed,omitempty"`
MessageWithFooter string `json:"messageWithFooter,omitempty"`
ParentsData []ParentInfo `json:"parents_data,omitempty"`
}

// CommentInfo entity contains information about an inline comment.
Expand Down

0 comments on commit 235fa61

Please sign in to comment.