From 417abc7c5dcf7d0967f41a2419f3a6445a069232 Mon Sep 17 00:00:00 2001 From: Lauris BH Date: Thu, 29 Mar 2018 10:34:44 +0300 Subject: [PATCH] Add closed at field for issue and pull request (#93) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Lauris Bukšis-Haberkorns --- gitea/issue.go | 2 ++ gitea/pull.go | 2 ++ 2 files changed, 4 insertions(+) diff --git a/gitea/issue.go b/gitea/issue.go index 199f2c7..6da4667 100644 --- a/gitea/issue.go +++ b/gitea/issue.go @@ -50,6 +50,8 @@ type Issue struct { Created time.Time `json:"created_at"` // swagger:strfmt date-time Updated time.Time `json:"updated_at"` + // swagger:strfmt date-time + Closed *time.Time `json:"closed_at"` PullRequest *PullRequestMeta `json:"pull_request"` } diff --git a/gitea/pull.go b/gitea/pull.go index 6f3f240..f196bd9 100644 --- a/gitea/pull.go +++ b/gitea/pull.go @@ -45,6 +45,8 @@ type PullRequest struct { Created *time.Time `json:"created_at"` // swagger:strfmt date-time Updated *time.Time `json:"updated_at"` + // swagger:strfmt date-time + Closed *time.Time `json:"closed_at"` } // PRBranchInfo information about a branch