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