You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 }=awaitmeasure(()=>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
The text was updated successfully, but these errors were encountered:
thanks for raising! Yea I think the owned=true was a oversight on my part since I was always testing with projects that I owned. Fix for that incoming in #50. Update: Fixed in release v2.1.1
I will keep this issue open for the suggestion about syncing all projects visible to a token.
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 providedtoken
(if any) will be synced.". However this is not how it works because of the hardcodedowned=true
query parameter:sourcebot/packages/backend/src/gitlab.ts
Lines 26 to 29 in 3697f3d
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 neithergroups
orusers
orprojects
are defined (usingapi.Projects.all()
)Currently, the only workaround to sync all the visible repos seems to explicitly list them all in the
projects
propertyThe text was updated successfully, but these errors were encountered: