From 06902fe19508c7ede2be38b71287c665efa1f10d Mon Sep 17 00:00:00 2001 From: Aaron Walker Date: Sun, 19 Feb 2017 06:17:32 -0500 Subject: [PATCH] expose url field in issues and pull requests (#39) --- gitea/issue.go | 1 + gitea/pull.go | 1 + 2 files changed, 2 insertions(+) diff --git a/gitea/issue.go b/gitea/issue.go index adb283a..729e54f 100644 --- a/gitea/issue.go +++ b/gitea/issue.go @@ -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"` diff --git a/gitea/pull.go b/gitea/pull.go index f55ecc0..fcccf07 100644 --- a/gitea/pull.go +++ b/gitea/pull.go @@ -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"`