mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 10:56:10 +01:00 
			
		
		
		
	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:
		| @@ -157,6 +157,7 @@ func TestGitHubDownloadRepo(t *testing.T) { | ||||
| 			PosterName: "guillep2k", | ||||
| 			State:      "closed", | ||||
| 			Created:    time.Date(2019, 11, 9, 17, 0, 29, 0, time.UTC), | ||||
| 			Updated:    time.Date(2019, 11, 12, 20, 29, 53, 0, time.UTC), | ||||
| 			Labels: []*base.Label{ | ||||
| 				{ | ||||
| 					Name:        "bug", | ||||
| @@ -189,6 +190,7 @@ func TestGitHubDownloadRepo(t *testing.T) { | ||||
| 			PosterName: "mrsdizzie", | ||||
| 			State:      "closed", | ||||
| 			Created:    time.Date(2019, 11, 12, 21, 0, 6, 0, time.UTC), | ||||
| 			Updated:    time.Date(2019, 11, 12, 22, 7, 14, 0, time.UTC), | ||||
| 			Labels: []*base.Label{ | ||||
| 				{ | ||||
| 					Name:        "duplicate", | ||||
| @@ -219,6 +221,7 @@ func TestGitHubDownloadRepo(t *testing.T) { | ||||
| 			PosterID:   1669571, | ||||
| 			PosterName: "mrsdizzie", | ||||
| 			Created:    time.Date(2019, 11, 12, 21, 0, 13, 0, time.UTC), | ||||
| 			Updated:    time.Date(2019, 11, 12, 21, 0, 13, 0, time.UTC), | ||||
| 			Content:    "This is a comment", | ||||
| 			Reactions: &base.Reactions{ | ||||
| 				TotalCount: 1, | ||||
| @@ -235,6 +238,7 @@ func TestGitHubDownloadRepo(t *testing.T) { | ||||
| 			PosterID:   1669571, | ||||
| 			PosterName: "mrsdizzie", | ||||
| 			Created:    time.Date(2019, 11, 12, 22, 7, 14, 0, time.UTC), | ||||
| 			Updated:    time.Date(2019, 11, 12, 22, 7, 14, 0, time.UTC), | ||||
| 			Content:    "A second comment", | ||||
| 			Reactions: &base.Reactions{ | ||||
| 				TotalCount: 0, | ||||
| @@ -266,6 +270,7 @@ func TestGitHubDownloadRepo(t *testing.T) { | ||||
| 			PosterName: "mrsdizzie", | ||||
| 			State:      "closed", | ||||
| 			Created:    time.Date(2019, 11, 12, 21, 21, 43, 0, time.UTC), | ||||
| 			Updated:    time.Date(2019, 11, 12, 21, 39, 28, 0, time.UTC), | ||||
| 			Labels: []*base.Label{ | ||||
| 				{ | ||||
| 					Name:        "documentation", | ||||
| @@ -302,6 +307,7 @@ func TestGitHubDownloadRepo(t *testing.T) { | ||||
| 			PosterName: "mrsdizzie", | ||||
| 			State:      "open", | ||||
| 			Created:    time.Date(2019, 11, 12, 21, 54, 18, 0, time.UTC), | ||||
| 			Updated:    time.Date(2020, 1, 4, 11, 30, 1, 0, time.UTC), | ||||
| 			Labels: []*base.Label{ | ||||
| 				{ | ||||
| 					Name:        "bug", | ||||
|   | ||||
		Reference in New Issue
	
	Block a user