Pull requests across branches

By on February 1, 2012

Bitbucket already supports fork-based pull requests, and while this model is great for open source projects – where new contributors can fork your repository and submit a pull request – it can feel heavy-handed when working in a small team.

Small (and large) teams rejoice! Today we are excited to announce the ability to create pull requests between branches. Using git’s lightweight branching support, and excellent extensions like Git Flow, have already made this the de facto workflow for Git diehards. We think that pull requests between branches is a perfect way to collaborate and conduct code reviews when working on a small or large team.

But wait, there’s more!

We’ve also streamlined some of the work around creating and updating pull requests:

Try it

First time creating a pull request? Check out this video and learn how to issue your first pull request.

16 Comments

  • Francisc
    Posted February 1, 2012 at 8:26 pm | Permalink

    Whoo!

  • Francisc
    Posted February 1, 2012 at 8:26 pm | Permalink

    Whoo!

  • Posted February 1, 2012 at 8:53 pm | Permalink

    does it works on mercurial as well? thanks

  • Posted February 1, 2012 at 8:53 pm | Permalink

    does it works on mercurial as well? thanks

  • Posted February 3, 2012 at 1:41 am | Permalink

    W00t!! One small step for git, one giant leap for mercurial.

  • Posted February 3, 2012 at 1:41 am | Permalink

    W00t!! One small step for git, one giant leap for mercurial.

  • Pieter van Boxtel
    Posted February 7, 2012 at 3:12 pm | Permalink

    If I understand it right, this cannot be enforced though? Like I cannot give someone rights to create a branch but not to commit to master?

    • Posted February 7, 2012 at 6:19 pm | Permalink

      That’s right. Access is enforced at the repository level; it’s not possible to restrict access *within* a repository.

  • Pieter van Boxtel
    Posted February 7, 2012 at 3:12 pm | Permalink

    If I understand it right, this cannot be enforced though? Like I cannot give someone rights to create a branch but not to commit to master?

    • Posted February 7, 2012 at 6:19 pm | Permalink

      That’s right. Access is enforced at the repository level; it’s not possible to restrict access *within* a repository.

  • Shaun Ek
    Posted February 13, 2012 at 2:41 pm | Permalink

    Very nice

  • Posted March 25, 2012 at 10:44 pm | Permalink

    Is there a way to get a list of current pull requests via API?

    • Posted March 26, 2012 at 11:07 pm | Permalink

      Unfortunately not… this is something we’d like to do, however there is no eta yet.

  • Maurizio Sambati
    Posted May 16, 2012 at 11:56 am | Permalink

    it would be even nicer if the default source branch when clicking the pull request button was the branch you’re currently watching