Fix missing updated time on migrated issues and comments (#9744)

* Fix missing updated time on migrated issues and comments

* Fix testing and missing updated on migrating pullrequest

Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
This commit is contained in:
Lunny XiaoandAntoine GIRARD authored and zeripath committed 2020-01-14 10:29:22 +00:00
1 parent 2677d071f9
commit 7f869c061e
6 files changed
+15

No files matched your search

+1
View File
@@ -14,6 +14,7 @@ type Comment struct {
PosterName string
PosterEmail string
Created time.Time
Updated time.Time
Content string
Reactions *Reactions
}
+1
View File
@@ -19,6 +19,7 @@ type Issue struct {
State string // closed, open
IsLocked bool
Created time.Time
Updated time.Time
Closed *time.Time
Labels []*Label
Reactions *Reactions
+1
View File
@@ -21,6 +21,7 @@ type PullRequest struct {
Milestone string
State string
Created time.Time
Updated time.Time
Closed *time.Time
Labels []*Label
PatchURL string