Pull Request URL Paramaters

Callum Silcock
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 19, 2018

Hi there, this is a bit of a specific question, but i'm trying to programmatically open a browser to the pull request screen for the current branch, I have it working with:

CWD="${PWD##*/}"
BRANCH="$(git rev-parse --abbrev-ref HEAD)"
open https://bitbucket.org/{orgName}/$CWD/pull-requests/new?source=$BRANCH&t=1


Which is great, I just can't seem to set the destination, it always defaults to master was wondering if there is a URL parameter to change it to develop for example

?destination=develop

 

2 answers

7 votes
Joao Lourenco
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 6, 2018

You can use &dest=$BRANCH2

srijan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 18, 2020

Also can we pass the destination-repository-name in the url params ??

4 votes
Chris Tapay
Contributor
August 16, 2018

What 't=1' means?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events