Skip to content

[BUG] Pagination prevent fetching more than 100 repositories #1

@GradedJestRisk

Description

@GradedJestRisk

Current perPage limit is 100 in Gitlab, and the script use 9999, thus fetching no more than 100 repositories.

https://docs.gitlab.com/ee/api/rest/index.html#pagination

per_page Number of items to list per page (default: 20, max: 100).

https://github.com/adroste/gitlab-clone-group/blob/main/gitlab-clone-group.py#L17

api_url = 'https://' + posixpath.join(args.gitlab_domain, 'api/v4/groups/', args.group_id, 'projects') + '?per_page=9999&page=1&include_subgroups=true'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions