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:
parent
e8c6cead0f
commit
0966349354
13 changed files with 194 additions and 56 deletions
|
@ -204,7 +204,9 @@ func TestGitlabDownloadRepo(t *testing.T) {
|
|||
},
|
||||
}, issues)
|
||||
|
||||
comments, err := downloader.GetComments(2)
|
||||
comments, _, err := downloader.GetComments(base.GetCommentOptions{
|
||||
IssueNumber: 2,
|
||||
})
|
||||
assert.NoError(t, err)
|
||||
assert.Len(t, comments, 4)
|
||||
assert.EqualValues(t, []*base.Comment{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue