GitX branch search does not work with GitHub
I
Intellectual Finch
Even after enabling FF CDS_LIST_REPO_V2, GitX pipelines are not displaying results when searching for GitHub Branches. GitHub’s REST API does not support searching for branches, but this can be achieved through one of the following avenues:
1) Using the REST API "Search References" endpoint (GET /repos/{owner}/{repo}/git/matching-refs/heads/), where this endpoint can be used to filter/search any matching references, including branches: https://docs.github.com/en/rest/git/refs?apiVersion=2022-11-28#list-matching-references
2) Use GitHub’s GraphQL API (instead of REST API), which does have a branch search endpoint: https://docs.github.com/en/rest/about-the-rest-api/comparing-githubs-rest-api-and-graphql-api?apiVersion=2022-11-28
Log In