diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2020-01-14 18:29:22 +0800 |
---|---|---|
committer | zeripath <art27@cantab.net> | 2020-01-14 10:29:22 +0000 |
commit | 7f869c061eadddcb05cd8bc54a54a0b7f640aa59 (patch) | |
tree | 86693bd079b985eb4d412d5f829aa5097a3a91c0 /modules/migrations/github.go | |
parent | 2677d071f911fb91f382acfedaedc251bd807f70 (diff) | |
download | gitea-7f869c061eadddcb05cd8bc54a54a0b7f640aa59.tar.gz gitea-7f869c061eadddcb05cd8bc54a54a0b7f640aa59.zip |
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>
Diffstat (limited to 'modules/migrations/github.go')
-rw-r--r-- | modules/migrations/github.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/migrations/github.go b/modules/migrations/github.go index fabdb4ae44..9183c9318f 100644 --- a/modules/migrations/github.go +++ b/modules/migrations/github.go @@ -385,6 +385,7 @@ func (g *GithubDownloaderV3) GetIssues(page, perPage int) ([]*base.Issue, bool, Milestone: milestone, State: *issue.State, Created: *issue.CreatedAt, + Updated: *issue.UpdatedAt, Labels: labels, Reactions: reactions, Closed: issue.ClosedAt, @@ -428,6 +429,7 @@ func (g *GithubDownloaderV3) GetComments(issueNumber int64) ([]*base.Comment, er PosterEmail: email, Content: *comment.Body, Created: *comment.CreatedAt, + Updated: *comment.UpdatedAt, Reactions: reactions, }) } @@ -523,6 +525,7 @@ func (g *GithubDownloaderV3) GetPullRequests(page, perPage int) ([]*base.PullReq Milestone: milestone, State: *pr.State, Created: *pr.CreatedAt, + Updated: *pr.UpdatedAt, Closed: pr.ClosedAt, Labels: labels, Merged: merged, |