Merge pull request #13 from sanketjpatel/feat/merge

Add APIResponse type for Merge
This commit is contained in:
Sanket Patel 2018-06-05 16:18:21 -05:00 committed by GitHub
commit faaa8c1e63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -109,6 +109,13 @@ type MergeResult struct {
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 {
ID string `json:"id"`
DisplayID string `json:"displayId"`