dspinellis/git-issue

git issue import from gitlab only imports 20 issues

Closed this issue · 1 comments

mjyc commented

The Problem

git issue import {username} {reponame} only imports first 20 issues because the gitlab api returns only 20 issues (see https://docs.gitlab.com/ee/api/issues.html#issues-pagination).

The Expected Behavior

git issue import {username} {reponame} should import all issues.

Potential Directions for Solution

git-issue does attempt to use pagination for both GitHub and GitLab (through the rest_next_page_url() function). From my tests, it seems that the regex that matches the next page didn't match the links that GitLab returns. I've made a pull request that fixes the issue for me.