Skip to content
This repository was archived by the owner on Jun 8, 2019. It is now read-only.

Commit 5a556d6

Browse files
committed
More fields in PR-struct
1 parent 95c5f7a commit 5a556d6

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

pull.go

+6-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ type PullRequest struct {
2424
State StateType `json:"state"`
2525
Comments int `json:"comments"`
2626

27-
HTMLURL string `json:"html_url"`
27+
HTMLURL string `json:"html_url"`
28+
DiffURL string `json:"diff_url"`
29+
PatchURL string `json:"patch_url"`
2830

2931
Mergeable bool `json:"mergeable"`
3032
HasMerged bool `json:"merged"`
@@ -38,7 +40,9 @@ type PullRequest struct {
3840
}
3941

4042
type PRBranchInfo struct {
41-
Name string `json:"name"`
43+
Name string `json:"label"`
44+
Ref string `json:"ref"`
45+
Sha string `json:"sha"`
4246
RepoID int64 `json:"repo_id"`
4347
Repository *Repository `json:"repo"`
4448
}

0 commit comments

Comments
 (0)