Skip to content

fix(deploy): Increase page limit and add pagination to releases #299

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lucasssvaz
Copy link
Contributor

@lucasssvaz lucasssvaz commented May 22, 2025

This pull request updates several functions in tools/config.sh to improve their handling of paginated API responses from GitHub. The changes increase the maximum number of pages processed in some functions and add pagination logic to others, ensuring more comprehensive data retrieval.

Enhancements to pagination logic:

  • Increased the maximum number of pages processed from 3 to 5 in the github_get_libs_idf function to allow for deeper searches through commit history.
  • Increased the maximum number of pages processed from 3 to 5 in the github_commit_exists function to improve the likelihood of finding a specific commit.

Added support for paginated responses:

  • Refactored the github_release_id function to include pagination logic, enabling it to search through multiple pages of releases to find a specific release ID.
  • Refactored the github_release_asset_id function to include pagination logic, allowing it to search through multiple pages of release assets to locate a specific asset ID.

@lucasssvaz lucasssvaz requested review from me-no-dev and Copilot May 22, 2025 16:38
@lucasssvaz lucasssvaz self-assigned this May 22, 2025
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request improves API pagination in several functions within tools/config.sh by increasing page limits and refactoring functions for paginated release and asset lookups.

  • Increased page limits in github_get_libs_idf and github_commit_exists.
  • Introduced while loops for paginated fetching in github_release_id and github_release_asset_id.

@lucasssvaz lucasssvaz requested a review from Copilot May 22, 2025 16:47
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request updates the pagination logic in the deployment scripts to support a larger set of paginated API responses from GitHub. Key changes include:

  • Increasing the page limit from 3 to 5 in functions retrieving library commits and commit existence.
  • Refactoring github_release_id to iterate through multiple pages to locate a specific release tag.
  • Refactoring github_release_asset_id to support pagination when looking up release asset IDs.

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.

1 participant