Skip to content

Commit 63afaa1

Browse files
author
Taavi Ansper
committed
Add option to query gitlab users without project bots.
1 parent 533b657 commit 63afaa1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/LdapSyncCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1354,7 +1354,7 @@ private function deployGitlabUsersAndGroups(array $config, string $gitlabInstanc
13541354
$this->logger?->notice("Finding all existing Gitlab users...");
13551355
$p = 0;
13561356

1357-
while (is_array($gitlabUsers = $gitlab->users()->all(["page" => ++$p, "per_page" => 100])) && [] !== $gitlabUsers) {
1357+
while (is_array($gitlabUsers = $gitlab->users()->all(["page" => ++$p, "per_page" => 100, "without_project_bots" => true])) && [] !== $gitlabUsers) {
13581358
/** @var array<int, GitlabUserArray> $gitlabUsers */
13591359
foreach ($gitlabUsers as $i => $gitlabUser) {
13601360
$n = $i + 1;

0 commit comments

Comments
 (0)