expose url field in issues and pull requests (#39)
This commit is contained in:
parent
c662dd0303
commit
06902fe195
2 changed files with 2 additions and 0 deletions
|
@ -30,6 +30,7 @@ type PullRequestMeta struct {
|
||||||
// Issue an issue to a repository
|
// Issue an issue to a repository
|
||||||
type Issue struct {
|
type Issue struct {
|
||||||
ID int64 `json:"id"`
|
ID int64 `json:"id"`
|
||||||
|
URL string `json:"url"`
|
||||||
Index int64 `json:"number"`
|
Index int64 `json:"number"`
|
||||||
Poster *User `json:"user"`
|
Poster *User `json:"user"`
|
||||||
Title string `json:"title"`
|
Title string `json:"title"`
|
||||||
|
|
|
@ -14,6 +14,7 @@ import (
|
||||||
// PullRequest represents a pull request API object.
|
// PullRequest represents a pull request API object.
|
||||||
type PullRequest struct {
|
type PullRequest struct {
|
||||||
ID int64 `json:"id"`
|
ID int64 `json:"id"`
|
||||||
|
URL string `json:"url"`
|
||||||
Index int64 `json:"number"`
|
Index int64 `json:"number"`
|
||||||
Poster *User `json:"user"`
|
Poster *User `json:"user"`
|
||||||
Title string `json:"title"`
|
Title string `json:"title"`
|
||||||
|
|
Loading…
Reference in a new issue