Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

push: Get all files in a pr #769

Merged
merged 5 commits into from
Oct 24, 2023
Merged

push: Get all files in a pr #769

merged 5 commits into from
Oct 24, 2023

Conversation

m4rc1e
Copy link
Collaborator

@m4rc1e m4rc1e commented Oct 23, 2023

Currently, the GraphQL query will only fetch the first 100 files in a pr. This means that gen-push-lists won't add all the files to the to_sandbox.txt or to_production.txt files for large prs e.g google/fonts#6624.

I thought about implementing a double cursor in the GraphQL query. However, it would've produced a lot of redundant data. My current approach is to fetch files using the rest api, only if the pr contains more than 100 files.

Fixes #737

cc @simoncozens

@m4rc1e
Copy link
Collaborator Author

m4rc1e commented Oct 23, 2023

@simoncozens mind taking a look?

@m4rc1e m4rc1e merged commit ce9b6fe into main Oct 24, 2023
11 checks passed
@simoncozens simoncozens deleted the push-100plus-files branch May 30, 2024 07:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

gen-push-lists only allows 100 files per PR
1 participant