How to receive pull request in sourcetree

Here is my problem (I'm quite new to bitbucket and sourcetree).

I have a private repo for a project and have invited a friend with read permissions to this repo (let's call this friend john).

John created a private branch from my repo, made some modifications in the files and then create a pull request.

I received a notification email for this pull request. I have managed to see this pull request in the bitbucket interface (with possibility to make some changes, comments etc... and the possibility to merg/decline).

But, is there a way to receive a notification in sourcetree (for the pull request) then review it in sourcetree and eventually merge it (all from source tree) (as it is possible form the bitbucket web interface).

Thanks in advance for any help

Sylvain

4 answers

GitHub pull requests are just branches. So you can get at least them by just adding them to your fetch spec. See https://gist.github.com/piscisaureus/3342247 .

Basically, PRs are at `refs/pull/*/head`, while the branches you're used to working with are at `refs/head/*`. Fetch both and you can treat PRs just like any other branch.

Atlassian folks: you could auto-add that to SourceTree pretty easily. When I manually add the fetch to the .git/config, SourceTreee gives me a reasonable UX. They are just branches. So don't really need any code change.

But then how can I resolve conflicts in the pull request from within SourceTree ?

I have the same question. not sure how a read only employee would send me the pull request, how do i see it, how do i pull the changes, merge them and then the whole branch deleted. a demo video/ tutorial from atlassian would be greatly appriciated.

Hey,

Currently we don't support in-app pull request features. Currently you just click on the link from either the e-mail (not sure if they're in there) or the Bitbucket interface which usually works out as people tend to review in Bitbucket first.

You can always log a feature request at jira.atlassian.com (project SRCTREE for Mac or SRCTREEWIN for Windows).

Cheers

Kieran,

I will log a feature request but besides that i do not understand the full flow of things:

I am using stash. i have read/write and my colleague has only read on stash. my colleague creates a new feature that needs to get merged to the develop branch. so she goes to sourcetree and creates a new pull request.

now what happens in terms of branches and where thay go? is the new branch uploaded from her machine to stash? do the branch gets pulled by me directly from her machine?

to keep things simple we prefer not to go into stash at all (except for creating repositories and permissions) so any improvement on source tree in that direction would be greatly appriciated

Her branch must be pushed to create a pull request, so when your colleague creates a pull request it's merely informing you that the feature should be tested by you and then merged in. Usually you checkout the feature branch before merging it in. A pull request is just that, to 'pull' those changes in. The branch must be in Stash in order for you to see it, which I think is a side-effect of the pull request anyway.

Understandable you want to keep things purely in SourceTree, many people tend to do this, but Stash/Bitbucket do provide extra things that SourceTree most likely won't do, i.e. commenting on diffs and diff lines and other collaboration features.

Thanks for the answer but this doesn't explain I cannot see the pull request appear in source tree. If I don't connect to the bitbucket "web site" I'm not informed that a push request have been received !

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
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 ...

798 views 0 4
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