Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Please make the branch name variable available in PR Template

Jiwon Jeon
Contributor
November 9, 2023

I want to insert the following command onto PR Template.

```shell
BRANCH={{branch_name}}; git fetch origin $BRANCH; git pull; git checkout $BRANCH;
```

To achieve this, a new variable including branch name must be created.

1 answer

1 accepted

1 vote
Answer accepted
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 20, 2023

Hi @Jiwon Jeon,

You can use the special variables {{source_branch}} and {{destination_branch}} in the Default pull request description in order to refer to the PR's branches.

I will ask the team that maintains the documentation to update our docs and include these variables as well.

Please feel free to reach out if you have any questions.

Kind regards,
Theodora

Jiwon Jeon
Contributor
November 23, 2023

Thanks for your support!

Like # people like this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events