Uploaded image for project: 'SR for Bitbucket - Development'
  1. SR for Bitbucket - Development
  2. SRBITB-384

Pull Request Open Prevention command could be better

    Details

    • Type: Bug
    • Status: Done (View Workflow)
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.5.6
    • Labels:
      None
    • Sprint:
      Sprint 51
    • Critical Points:
      0

      Description

      At the moment when you try to create a PR from a old branch you see:

      Please rebase your branch on to the target branch before creating a pull request: git checkout task/SRCLOUD-1534-new-multi-select-documentation-example; git rebase master; git push -f

      There are a few problems:
      a) you need to already have master up to date
      b) we should recommend push --force-with-lease (in case someone else has force pushed to that branch) instead of push -f

      Please can it updated to say:

      Please rebase your branch on to the target branch before creating a pull request: git checkout master; git pull; git checkout task/SRCLOUD-1534-new-multi-select-documentation-example; git rebase master; git push --force-with-lease

        Attachments

          Structure

            Activity

              People

              Assignee:
              szaporozhtsev Sergey Zaporozhtsev [X] (Inactive)
              Reporter:
              jbevan Jon Bevan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Structure Helper Panel