Update and retarget open pull requests when merging destination branch

XMLWordPrintable

      Consider the following situation: A developer starts a feature branch (feature-A), completes the implementation, opens a pull request – but the review is not being started yet. Now she starts another feature (feature-B) that builds on the previous feature and completes that as well. You now have following branching scenario:

      base
       -> feature-A
           -> feature-B

      The review for the second feature should obviously not include the changes from the first feature, so the second pull request is created against feature-A. There will hence be two pull requests:

      1) feature-A -> base
      2) feature-B -> feature-A
      

      Now say the first pull request is approved and should be merged. The merge dialog in then has the "Delete source branch after merging" option greyed out. The reason is stated: "You can not delete the branch because there are open pull requests with the branch as the destination."

      Right now, to merge the pull request and get rid of the respective branch, as one needs to do these steps:

      • merge feature-A into base
      • open the second pull request, change its destination to base
      • delete feature-A

      I think this is a bit tedious. Please enable that option even in this scenario and make it_ update the open descending pull request_. After all, the second pull request also targets base, but only implicitly as it could not be created like that at the time it was opened.

              Assignee:
              Norman Ma (Inactive)
              Reporter:
              Max Seelemann
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: