diff --git a/github/issues.go b/github/issues.go index 3957f22..58a85ec 100644 --- a/github/issues.go +++ b/github/issues.go @@ -18,6 +18,7 @@ type IssuesService service // Issue represents a GitHub issue on a repository. type Issue struct { + ID *int `json:"id,omitempty"` Number *int `json:"number,omitempty"` State *string `json:"state,omitempty"` Title *string `json:"title,omitempty"` diff --git a/github/pulls.go b/github/pulls.go index fe3dc3b..0900766 100644 --- a/github/pulls.go +++ b/github/pulls.go @@ -18,6 +18,7 @@ type PullRequestsService service // PullRequest represents a GitHub pull request on a repository. type PullRequest struct { + ID *int `json:"id,omitempty"` Number *int `json:"number,omitempty"` State *string `json:"state,omitempty"` Title *string `json:"title,omitempty"`