Change target of PR
I would like to be able to change the target branch of a PR after it is submitted. Use case is that a PR is submitted and reviewed and has a bunch of comments. While trying to address the comments developer realizes that it can't be include in this release so it should be merged into a different branch for the next release. Would like to be able to change the target branch so that the PR history and comments are preserved, which is currently not possible.
Updated by Daniel D over 2 years ago
This is currently not possible. This is an interesting concept for us to look at.
In the meantime you could do this manually via ishell.
pr = PullRequest.get(1234) pr.target_ref = u'branch:new-target-branch-name:full-sha-of-new-branch-target-commit-id' Session().add(pr);Session().commit()
After that change you have to force-update the PR for it to take effect