summaryrefslogtreecommitdiffstats
path: root/modules/structs/issue_milestone.go
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2020-09-05 19:38:54 +0200
committerGitHub <noreply@github.com>2020-09-05 13:38:54 -0400
commit1ea1cade8559e1d2aa75916c0dbfe31903423101 (patch)
treebcbf57e73c97b741f2c710804acb0b392fe71e79 /modules/structs/issue_milestone.go
parent74047864202f2b34ded176597ca0b94034665b52 (diff)
downloadgitea-1ea1cade8559e1d2aa75916c0dbfe31903423101.tar.gz
gitea-1ea1cade8559e1d2aa75916c0dbfe31903423101.zip
Add Created & Updated to Milestone (#12662)
* Add Created and Updated to Milestone table and expose via API * Expose to UI - To Overloaded ?!? * fix unit test Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'modules/structs/issue_milestone.go')
-rw-r--r--modules/structs/issue_milestone.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/structs/issue_milestone.go b/modules/structs/issue_milestone.go
index ec940c2604..ace783ebbc 100644
--- a/modules/structs/issue_milestone.go
+++ b/modules/structs/issue_milestone.go
@@ -17,6 +17,10 @@ type Milestone struct {
OpenIssues int `json:"open_issues"`
ClosedIssues int `json:"closed_issues"`
// swagger:strfmt date-time
+ 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"`
// swagger:strfmt date-time
Deadline *time.Time `json:"due_on"`