More fields in PR-struct

This commit is contained in:
Kim "BKC" Carlbäcker 2016-11-02 00:36:09 +01:00
parent 95c5f7a280
commit 5a556d6046

View file

@ -25,6 +25,8 @@ type PullRequest struct {
Comments int `json:"comments"`
HTMLURL string `json:"html_url"`
DiffURL string `json:"diff_url"`
PatchURL string `json:"patch_url"`
Mergeable bool `json:"mergeable"`
HasMerged bool `json:"merged"`
@ -38,7 +40,9 @@ type PullRequest struct {
}
type PRBranchInfo struct {
Name string `json:"name"`
Name string `json:"label"`
Ref string `json:"ref"`
Sha string `json:"sha"`
RepoID int64 `json:"repo_id"`
Repository *Repository `json:"repo"`
}