Skip to content

Conversation

@madhonk1208
Copy link

Currently the maximum of pages that will be traversed is set to a static value.

const PageNumberLimit = 2

But for bigger projects and especially bigger teams, the traversal fetch of just two pages is not enough. For example if you want to calculate the velocity of the last 10 sprints in project x that contains y repositories, contributing z team members.

So I added in the query options of projects a MaxPages traversal option. This option replaces the static PageNumberLimit in projects.

In fact the user that created the query is in charge how many pages should be fetched.

If there are less pages available, the already existing code will break the loop.

Default value is set to 2
Max value is limited to 30

Sad that at the moment github projectsV2 does not support more features like sorting and filtering. Hopefully this code will be obsolete in future releases of github graphql.

@madhonk1208 madhonk1208 requested a review from a team as a code owner September 30, 2025 05:57
@CLAassistant
Copy link

CLAassistant commented Sep 30, 2025

CLA assistant check
All committers have signed the CLA.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Markus Hoeckner seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@madhonk1208 madhonk1208 changed the title Ferature: add MaxPages option to project queries Feature: add MaxPages option to project queries Sep 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

3 participants