mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-22 21:35:35 +03:00
Gitlab Migrator: dont ignore reactions of last request (#16903)
Fix bug related to early breaking when migrating reactions.
This commit is contained in:
parent
57b0887ab2
commit
7062614dee
1 changed files with 12 additions and 6 deletions
|
@ -421,12 +421,15 @@ func (g *GitlabDownloader) GetIssues(page, perPage int) ([]*base.Issue, bool, er
|
|||
if err != nil {
|
||||
return nil, false, fmt.Errorf("error while listing issue awards: %v", err)
|
||||
}
|
||||
if len(awards) < perPage {
|
||||
break
|
||||
}
|
||||
|
||||
for i := range awards {
|
||||
reactions = append(reactions, g.awardToReaction(awards[i]))
|
||||
}
|
||||
|
||||
if len(awards) < perPage {
|
||||
break
|
||||
}
|
||||
|
||||
awardPage++
|
||||
}
|
||||
|
||||
|
@ -584,12 +587,15 @@ func (g *GitlabDownloader) GetPullRequests(page, perPage int) ([]*base.PullReque
|
|||
if err != nil {
|
||||
return nil, false, fmt.Errorf("error while listing merge requests awards: %v", err)
|
||||
}
|
||||
if len(awards) < perPage {
|
||||
break
|
||||
}
|
||||
|
||||
for i := range awards {
|
||||
reactions = append(reactions, g.awardToReaction(awards[i]))
|
||||
}
|
||||
|
||||
if len(awards) < perPage {
|
||||
break
|
||||
}
|
||||
|
||||
awardPage++
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue