fix(gitea): project listing
This commit is contained in:
@ -270,18 +270,18 @@ func (f *Forge) ListProjects(ctx context.Context) ([]*model.Project, error) {
|
||||
return nil, errors.WithStack(err)
|
||||
}
|
||||
|
||||
page = res.NextPage
|
||||
|
||||
if res.NextPage == 0 {
|
||||
break
|
||||
}
|
||||
|
||||
for _, r := range repositories {
|
||||
projects = append(projects, &model.Project{
|
||||
ID: strconv.FormatInt(r.ID, 10),
|
||||
Name: r.FullName,
|
||||
})
|
||||
}
|
||||
|
||||
if res.NextPage == 0 {
|
||||
break
|
||||
}
|
||||
|
||||
page = res.NextPage
|
||||
}
|
||||
|
||||
return projects, nil
|
||||
|
Reference in New Issue
Block a user