Skip to content

fix return errors in ListRepositories method#1635

Merged
timbastin merged 2 commits into
mainfrom
fix-gitlab-list-repositories
Feb 3, 2026
Merged

fix return errors in ListRepositories method#1635
timbastin merged 2 commits into
mainfrom
fix-gitlab-list-repositories

Conversation

@refoo0
Copy link
Copy Markdown
Member

@refoo0 refoo0 commented Feb 3, 2026

No description provided.

Signed-off-by: rafi <refaei.shikho@hotmail.com>
Copilot AI review requested due to automatic review settings February 3, 2026 17:13
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the GitLab batch client's ListRepositories method so that errors from individual GitLab clients during project listing are logged instead of being propagated to the caller.

Changes:

  • Add log/slog import to integrations/gitlabint/gitlab_client.go.
  • In gitlabBatchClient.ListRepositories, replace returning an error from client.ListProjects with a slog.Warn log, allowing the method to continue and return repositories from other clients.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread integrations/gitlabint/gitlab_client.go
Signed-off-by: Tim Bastin <38261809+timbastin@users.noreply.github.com>
@timbastin timbastin merged commit d23e518 into main Feb 3, 2026
10 of 11 checks passed
@timbastin timbastin deleted the fix-gitlab-list-repositories branch February 3, 2026 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants