mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Make the github migration less rate limit waiting to get comment per page from repository but not per issue (#16070)
* Make the github migration less rate limit waiting to get comment per page from repository but not per issue * Fix lint * adjust Downloader interface * Fix missed reviews * Fix test * Remove unused struct
This commit is contained in:
		@@ -224,7 +224,9 @@ func TestGiteaDownloadRepo(t *testing.T) {
 | 
			
		||||
		Closed:    &closed2,
 | 
			
		||||
	}, issues[1])
 | 
			
		||||
 | 
			
		||||
	comments, err := downloader.GetComments(4)
 | 
			
		||||
	comments, _, err := downloader.GetComments(base.GetCommentOptions{
 | 
			
		||||
		IssueNumber: 4,
 | 
			
		||||
	})
 | 
			
		||||
	assert.NoError(t, err)
 | 
			
		||||
	assert.Len(t, comments, 2)
 | 
			
		||||
	assert.EqualValues(t, 1598975370, comments[0].Created.Unix())
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user