Skip to content
This repository was archived by the owner on Jun 8, 2019. It is now read-only.

Commit 417abc7

Browse files
lafriksappleboy
authored andcommitted
Add closed at field for issue and pull request (#93)
Signed-off-by: Lauris Bukšis-Haberkorns <[email protected]>
1 parent 92585b2 commit 417abc7

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

gitea/issue.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ type Issue struct {
5050
Created time.Time `json:"created_at"`
5151
// swagger:strfmt date-time
5252
Updated time.Time `json:"updated_at"`
53+
// swagger:strfmt date-time
54+
Closed *time.Time `json:"closed_at"`
5355

5456
PullRequest *PullRequestMeta `json:"pull_request"`
5557
}

gitea/pull.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ type PullRequest struct {
4545
Created *time.Time `json:"created_at"`
4646
// swagger:strfmt date-time
4747
Updated *time.Time `json:"updated_at"`
48+
// swagger:strfmt date-time
49+
Closed *time.Time `json:"closed_at"`
4850
}
4951

5052
// PRBranchInfo information about a branch

0 commit comments

Comments
 (0)