Skip to content

Instantly share code, notes, and snippets.

@chmouel
Last active April 11, 2026 07:38
Show Gist options
  • Select an option

  • Save chmouel/acbcbbf254e8d2d099d693f1fdfd5756 to your computer and use it in GitHub Desktop.

Select an option

Save chmouel/acbcbbf254e8d2d099d693f1fdfd5756 to your computer and use it in GitHub Desktop.
snippet 5979108

Title Implement GraphQL batch fetching for .tekton files

Type Feature

Description Introduce support for fetching multiple .tekton directory files using the GitHub GraphQL API instead of individual REST API calls. This change enables batching of file retrieval into a single request, reducing API usage and improving performance.

Acceptance Criteria

  • .tekton files are fetched using GraphQL in a single batched request
  • Number of GitHub API calls is reduced compared to the previous approach
  • Existing functionality for retrieving and processing .tekton files remains unchanged
  • Compatible with both GitHub.com and GitHub Enterprise instances
  • Proper error handling is in place for GraphQL failures
  • Test coverage includes GraphQL-based fetching scenarios

Notes

  • Replaces multiple REST calls with a single GraphQL query
  • Includes validation to ensure fetched YAML files are processed correctly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment