How do I configure a pull request in source tree?

1 answer

1 accepted

Right-click on the branch name, select "Create Pull Request...". This takes you to the web interface where you can provide the details.

 

EDIT: To add support for this to an existing clone:

  • (Open the clone in question in SourceTree)
  • Repository\Repository Settings
  • Edit the properties or the remote where you want to create pull requests
  • Specify the host type and URL, optionally the user
    • Supports Stash, BitBucket and GitHub

The problem was that I got an error saying I had to configure my repository before that would work.

I didn't know what fields I had to set or what values they should have (base URL, host type?).

 

What server are you working with? As far as I know, this functionality only works with Stash.

It actually does support that, I added instructions to the answer above.

why is github enterprise being blocked? I changed the remoteProjectLink0.baseURL to point to our internal github server. but the client apparently ignores it and continues to send me to github.com.

It seems this doesn't work for locally hosted Bitbucket, because you cannot change the URL from www.bitbucket.com:

image2017-1-19 10:16:35.png

It works with Bitbucket Server. It was formerly named Stash so in SourceTree, select Stash. This will allow you to then put in the URL to where your Stash server is located.

How about the gitlab server, we setup a gitlab server of our own, every time we create pull request from sourcetree, it popup a message box, saying

"You don't have any remotes which have extended integration settings configured; you need to edit your remotes to add details such as the hosting type and base URL. Click the Settings button to open your remote list."

but, in remote tab of setting box, we shoose "Unknown" in Host Type field, leave Host Root Url blank(because it's not allowed to input), Username using gitlab account username.....

 

still can't create pull request, can someone help how to setup sourcetree to make "create pull request" work on gitlab ? Thanks^^

Atlassian has decided not to implement Gitlab support.

https://jira.atlassian.com/browse/SRCTREE-1845

@ryan ye because Jira will not provide Gitlab support, I've written a small tool to make life easier. You configured a Sourcetree custom action that opens the Google Chrome browser with a Gitlab merge request.

Packagist - JCID - Gitlab merge request opener

https://jira.atlassian.com/browse/SRCTREE-1845?focusedCommentId=1652520

Suggest an answer

Log in or Join to answer
Community showcase
Brian Ganninger
Published Jan 23, 2018 in Sourcetree

Tip from the team: workflow and keyboard shortcuts

Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...

241 views 0 3
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot