Default branch name

Brigitte Bedard March 6, 2025

How can I get the default branch name from inside a pipeline?  Our default branch name changes with every release.

I would like to be able to diff against the default branch to decide what part of the test suite to run when a new branch is pushed into the repo and before a PR is issued.

I looked everywhere and could not find it.  If it does not exist, it would be nice to make this available as a REPO variable accessible from inside the pipeline.

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin Site Admin
TAGS
AUG Leaders

Atlassian Community Events