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
.tektonfiles 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
.tektonfiles 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