Browse Source

Add missing ID fields to PullRequest and Issue structs

In
[events](https://developer.github.com/v3/activity/events/types/#pullrequestevent),
the `id` field is present both in the Issue and PullRequest objects.

This PR adds them.
Carlos Alexandro Becker 10 years ago
parent
commit
878df980b6
No known key found for this signature in database GPG Key ID: E61E2F7DC14AB940
2 changed files with 2 additions and 0 deletions
  1. +1
    -0
      github/issues.go
  2. +1
    -0
      github/pulls.go

+ 1
- 0
github/issues.go View File

@ -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"`


+ 1
- 0
github/pulls.go View File

@ -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"`


Loading…
Cancel
Save