expose url field in issues and pull requests (#39)

This commit is contained in:
Aaron Walker 2017-02-19 06:17:32 -05:00 committed by Lunny Xiao
parent c662dd0303
commit 06902fe195
2 changed files with 2 additions and 0 deletions

View file

@ -30,6 +30,7 @@ type PullRequestMeta struct {
// Issue an issue to a repository
type Issue struct {
ID int64 `json:"id"`
URL string `json:"url"`
Index int64 `json:"number"`
Poster *User `json:"user"`
Title string `json:"title"`

View file

@ -14,6 +14,7 @@ import (
// PullRequest represents a pull request API object.
type PullRequest struct {
ID int64 `json:"id"`
URL string `json:"url"`
Index int64 `json:"number"`
Poster *User `json:"user"`
Title string `json:"title"`