Add closed at field for issue and pull request (#93)

Signed-off-by: Lauris Bukšis-Haberkorns <lauris@nix.lv>
This commit is contained in:
Lauris BH 2018-03-29 10:34:44 +03:00 committed by Bo-Yi Wu
parent 92585b27a0
commit 417abc7c5d
2 changed files with 4 additions and 0 deletions

View file

@ -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"`
}

View file

@ -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