From 5a556d60468311174448262ef79a1bb7d2208d58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kim=20=22BKC=22=20Carlb=C3=A4cker?= Date: Wed, 2 Nov 2016 00:36:09 +0100 Subject: [PATCH] More fields in PR-struct --- pull.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pull.go b/pull.go index 59297f5..3b14952 100644 --- a/pull.go +++ b/pull.go @@ -24,7 +24,9 @@ type PullRequest struct { State StateType `json:"state"` Comments int `json:"comments"` - HTMLURL string `json:"html_url"` + 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"` }