Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-9511

New references to branch for each pull request.

    XMLWordPrintable

Details

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      Hello,
      Could you add a reference to every new pull request that is made so that the code in the pull request can be checked out by pulling the remote?
      It would be extremely helpful when you want to checkout a new pull request to test it locally. I know there is a way to checkout new pull requests but it takes a little bit.

      It is already on github and you every pull request has a own reference. When I run git ls-remote github url on a github repo, I get:
      SHA... refs/heads/master
      SHA... refs/pull/1/head

      Since pull requests aren't in refs/heads, you won't have way too many branches when clone a repo, unless you change the fetch config to fetch = +refs/pull//head:refs/remotes/origin/pr/

      It especially gets useful if want to automatically test the pull request on CI programs like Jenkins.

      Attachments

        Activity

          People

            Unassigned Unassigned
            52398aef1faf Matt3o12
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: