The Wayback Machine - https://web.archive.org/web/20250511213848/https://github.com/webiny/webiny-js/issues/1785
Skip to content

CI Setup only gives you access to your first page of repositories #1785

Closed
@timruppert

Description

@timruppert

In the CI/CD scaffolding script where if the github account selected has enough repositories where it starts paginating them, only the first page of repositories, sorted alphabetically, are available as options to the CI/CD script. We got past this by changing the repo to start with an “a”, but this seems unintended. The issue is in the results - what you are calling looks to be paginated, but it looks like it's not handling the results in that way.

This is:

  • Bug
    OR
  • Feature request

Specifications

  • version: v5.10.0
  • OS: Mac OS 11.4
  • Browser: Terminal

Expected Behavior

I should see all of my repositories that are visible, not just the first page (30 or so)

Actual Behavior

I only get access to using my first page of repos, listed alphabetically

Steps to Reproduce the Problem

  1. Go load yourself up with more than 30 active repos
  2. Then when you go to setup the CI process and it needs to attach to a repo, it's not there.

Detailed Description

There's a place where the page size needs to be set to something a bit more reasonable - but really it should give you access to ALL of them.

Possible Solution

https://github.com/webiny/webiny-js/blob/next/packages/cli-plugin-scaffold-ci/src/githubActions/index.ts#L143

Change this to iterate over ALL repos to build the list - instead of any finite number. Pointer from @Pavel910:

https://octokit.github.io/rest.js/v18#repos-list-for-authenticated-user

Metadata

Metadata

Assignees

Labels

buggood first issueAn issue that is not too complicated to resolve, and it's an ideal issue for new contributors.improvement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions