Skip to content

GitHub integration repository chooser stops at the first 100 repositories (bounty proposal) #13168

Closed

Description

@kaijakagi-sys

The GitHub integration's repository chooser can omit accessible repositories beyond the first page. In list_user_repos, one GET /user/repos uses per_page=100&sort=updated and returns that response without following pagination. Both OAuth setup and Refresh Repos cache this list, and the settings dropdown renders only those cached entries (main.py). Thus an accessible target repository on page two cannot be selected through that dropdown; refreshing repeats the same first-page request.

I checked current source against this commit and observed the unchanged method with offline HTTP fixtures: a 100-repository response carrying a next-page Link still produced exactly one request and 100 results; one-repository and empty responses without a next link were controls. This is a source/contract reproduction, not a live-account incident or an implemented fix. GitHub's API documentation specifies a maximum of 100 results per page and page defaults to 1.

@josancamon19 Would you accept a small PR that retrieves all repository pages while preserving the existing output shape and error behavior (without presenting a partial list as complete), with production-method regression coverage for multiple pages, complete/empty lists, and a later-page failure—and consider a proposed US$25 bounty, subject to your eligibility and merge rules? I have not started implementation; happy to stop if this scope is already covered.

OAuth scopes, issue creation, label pagination and the separate public/no-auth plugin stay out of scope.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions