Skip to content

Sync all GitLab repos visible to the token #49

Closed
@loris

Description

@loris

Not sure if a bug report or a feature request, but it looks like v2 does not allow to sync all the repositories of a GitLab server which are visible to the user who created the token.

According to the documentation it should be possible using groups: "List of groups to sync with. All projects in the group visible to the provided token (if any) will be synced.". However this is not how it works because of the hardcoded owned=true query parameter:

const { durationMs, data } = await measure(() => api.Groups.allProjects(group, {
perPage: 100,
owned: true,
}));

In addition to that owned=true query parameter which should be removed IMO, we should probably allow syncing all the projects of a gitlab server when neither groups or users or projects are defined (using api.Projects.all())

Currently, the only workaround to sync all the visible repos seems to explicitly list them all in the projects property

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions