Uploaded image for project: 'Sourcetree For Mac'
  1. Sourcetree For Mac
  2. SRCTREE-4776

allow pull requests only

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • High
    • None
    • None
    • Bitbucket
    • None
    •  

       

    • Severity 2 - Major

    Description

      Hi,

      I have configured the following settings in my bitbucket repo:

      1. Project > Settings > Permissions > Default Permission (=No access)
      2. Project > Settings > Permissions > All users/groups except the Admin users/groups should be granted Read access
      3. Repository > Create branch > develop (branch-type: Custom, branch-from: develop, branch-name: develop)
      4. Repository > Repository permissions > All users/groups except the Admin users/groups should be granted Write access
      5. Repository > Branch permissions > Add permissions > Branch name (=master) , Restrictions (=Prevent changes without a pull request)
      6. Repository > Branch permissions > Add permissions > Branch name (=develop) , Restrictions (=Prevent changes without a pull request)
      7. Repository > Settings > Repository details > Clear the checkbox to prevent forking of this repository
      8. Repository > Settings > Pull requests > Requires N approvers (see to-be-reviewed-by list below)
      9. Repository > Settings > Pull requests > Unapprove automatically on new changes
      10. Repository > Settings > Pull requests > Requires all reviewers to approve the pull request
      11. Repository > Settings > Branching model > Development (=develop)
      12. Repository > Settings > Branching model > Enable automatic merging

      I would like to allow pull requests only on brach develop:

      I believe that the problem is  that "Push latest changes from local to remote" is enabled and is not-editable option. (see attachment 01.png)

      Please note that the following option ("Push changes immediately to origin/develop") is enabled when I do commit, although I am not sure if it plays a role (see attachment 02.png)

      The error message I am getting is:
      remote: Branch refs/heads/develop can only be modified through pull requests.        remote: Check your branch permissions configuration with the project administrator.
      Could you please advise on how to setup the pull-request only workflow in bitbucket using sourcetree ?

       

      NOTE:

      It seems that the same issue was described in SRCTREE-1798

      Issue has been filed also here: https://community.atlassian.com/t5/SourceTree-questions/allow-pull-requests-only/qaq-p/587001

      Would you be so kind to make this a high priority as while the hosted Bitbucket server that our company uses allows all requests only policy, but the SourceTree does not, which is confusing and this functionality is a must in establishing a workflow in a big corp. 

      Would you be so kind to provide an estimated date for the fix ?

      Please let me know if you need any additional information.

      with kind regards,

      Nikos

      Attachments

        1. 01.png
          01.png
          25 kB
        2. 02.png
          02.png
          5 kB
        3. 100-105-Exam-Dumps-2019.pdf
          727 kB
        4. 62-193-Exam-Dumps-2019.pdf
          262 kB

        Activity

          People

            Unassigned Unassigned
            8912e68282fc Nikos Skalis
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: