gitBranchesFromApi=$(curl -s --user ${gitCredentials} --header PRIVATE-TOKEN:${gitToken} https://addpage.gitlab.com/gitlab/api/v4/projects/$projectId/repository/branches?pagination=keyset&per_page=100)
I have added to show 100 git branches but it is showing only 20. The rest are getting deleted. Is this correct?
CodePudding user response:
Keyset based pagination is not supported for Branches API.
Its only supported for Projects API, Groups API and Group Audit Events.
Keyset-based pagination is supported only for selected resources and ordering options: Projects | Groups | Group audit events
CodePudding user response:
After removing keyset and adding page=1, it's working.