Skip to content

[Github] Failure to Read > 29 Branches #327

@ZoriaRPG

Description

@ZoriaRPG

Related to #82

Reading from github in a new environment, source-integration fails to import all branches/revisions. From observation, we're seeing that the likely culprit is the Github API page system:

e.g. the first 'page' of our repo:
https://api.github.com/repos/armageddongames/zeldaclassic/branches

The plugin fails to try to parse beyond that first page--perhaps at one time, they were one unified page?

See:
https://api.github.com/repos/armageddongames/zeldaclassic/branches?page=2
https://api.github.com/repos/armageddongames/zeldaclassic/branches?page=3
&c.

Beyond this, it seems to always stop at the 29th branch, out of 30. I cannot explain this one unless the software has a hardcoded limit, but we can reproduce it with 100% reliability.

Fetching all branches with '*', we always stop at the 29th branch on the first page, and the plugin believes that there remains naught more to see, or to fetch beyond that, unless we manually direct it at each missing branch.

We tested this from the CLI, to ensure that it was not a server / php timeout. Happens every time, without variation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions