Add APIResponse type for Merge

This commit is contained in:
Sanket Patel 2018-06-05 14:07:33 -05:00
parent 01572b5eb7
commit 3cd3a0fa0c

View File

@ -109,6 +109,13 @@ type MergeResult struct {
Current bool `json:"current"` Current bool `json:"current"`
} }
type MergeGetResponse struct {
CanMerge bool `json:"canMerge"`
Conflicted bool `json:"conflicted"`
Outcome string `json:"outcome"`
Vetoes []map[string]interface{} `json:"vetoes"`
}
type PullRequestRef struct { type PullRequestRef struct {
ID string `json:"id"` ID string `json:"id"`
DisplayID string `json:"displayId"` DisplayID string `json:"displayId"`