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

Compare Branches option in a forked repository includes a pull request option to create a pull request from the parent repository to the forked repository

XMLWordPrintable

      Issue Summary

      Compare Branches option in a forked repository includes a pull request option to create a pull request from the parent repository to the forked repository but pull request is created from forked repository to parent repository.

      Though in a forked repository, the ability to create a pull request typically exists only from the forked repository to the parent repository and not vice versa. 

      Create pull request option should be disabled in this scenario.

      Steps to Reproduce

      1. Go to the forked repository and select "Branches."
      2. Click on the three dots and select "Compare" under actions against the main branch.
      3. Select the source as the parent repository's main branch and the destination as the forked repository's main branch.
      4. Click on the "Pull Request" button.

      Expected Results

      It should create a pull request between the parent repository's main branch and the destination fork repository's main branch. The URL also displays the pull request between the parent of the forked repository and the forked repository itself.

      Actual Results

      In a forked repository, the ability to create a pull request typically exists only from the forked repository to the parent repository and not vice versa. Therefore, the pull request shown will be between the destination fork repository's main branch and the parent repository's main branch.

      Workaround

      Sync or merge button available that allows one to synchronize data from the parent repository to the forked repository.

              Unassigned Unassigned
              f2cc5e9850cf Suhas Sundararaju
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: