Add switch default branch feature
long-term
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.
Log In
Prasad Satam
marked this post as
long-term
Hi Tangerine Mackerel
Thank you for raising this — it's a valid use case, especially for teams that use branch-based onboarding workflows to vend pipelines.
We've evaluated this request and confirmed that while the "Edit Git details" option does allow modifying some Git settings for a remote pipeline, it
does not currently support changing the default branch. We also verified that the branch switcher in Pipeline Studio lets you view and run pipelines
from other branches, but it doesn't permanently update the default.
We've logged this as an enhancement on our backlog to add the ability to permanently change the default branch for remote (GitX) pipelines via the
existing "Edit Git details" flow. This would cover your scenario of:
1. Creating a pipeline on a temporary onboarding branch
2. Merging that branch into a permanent branch
3. Re-pointing the pipeline's default branch to the permanent branch
4. Safely deleting the temporary branch without breaking the pipeline
We don't have a specific timeframe to share at this point, but we're tracking demand for this capability. We encourage you and your team to continue
voting on this post — vote count directly influences how we prioritize.
In the meantime, if you need to work around this, the only option is to recreate the pipeline on the target branch. We understand that's not ideal
and this enhancement aims to eliminate that need.
We'll update this post as we make progress. Thank you for helping us improve the GitX experience!