Skip to content

Commit

Permalink
test Projects.all with keyset pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexTugarev committed Sep 15, 2022
1 parent 4cc353e commit 2511cab
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion components/server/ee/src/gitlab/gitlab-app-support.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@ export class GitLabAppSupport {
// we are listing only those projects with access level of maintainers.
// also cf. https://docs.gitlab.com/ee/api/members.html#valid-access-levels
//
const projectsWithAccess = await api.Projects.all({ min_access_level: "40", perPage: 100 });
const projectsWithAccess = await api.Projects.all({
min_access_level: "40",
perPage: 100,
pagination: "keyset",
});
for (const project of projectsWithAccess) {
const aProject = project as ProjectSchema;
const path = aProject.path as string;
Expand Down

0 comments on commit 2511cab

Please sign in to comment.