GitX branch search does not work with GitHub
long-term
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
Rohan Gupta
Merged in a post:
Add switch default branch feature
T
Tangerine Mackerel
The pipeline default branch cannot be edit.
Please add the feature to enable the switching.
This is for the branch that's hosting the pipeline by default.
For example, we have a pipeline to vend all of our pipeline with a new branch name "harness-onboarding-xxx" set as the default on vending. After merging this branch to another branch "pipeline" for example, deleting this branch will redirect back to main then shows an error where pipeline doesn't exist.
We like to have a way to change that after the pipeline is vended.
Rohan Gupta
long-term
Canny AI
Merged in a post:
GitX Branch dropdowns don't allow for more branches
I
Intellectual Finch
Currently if we try to modify pipelines and choosing branches from the dropdown, it lists only 20/30 branches depending on the git provider. Anything above is not even searchable. The expectation is to return the first X results matching search string
Rohan Gupta
Merged in a post:
Improvement pipeline CD
U
Ube Condor
We would like to have a branch list from Git Repo when we run a pipeline.
Actually we only have the default one, and if we want to select an other branch we need to type it.
The API (ng/api/scm/list-branches) used to retrieve the default branch can also retrieve all the branches by removing the query parameters : "size=1".