Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
More fields in PR-struct
  • Loading branch information
bkcsoft committed Nov 1, 2016
commit 5a556d60468311174448262ef79a1bb7d2208d58
8 changes: 6 additions & 2 deletions pull.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand All @@ -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"`
}
Expand Down