Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement parents_data in RevisionInfo #157

Merged
merged 1 commit into from
Jan 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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