Project

General

Profile

Actions

Feature #5631

open

Change target of PR

Added by Evan Ward over 4 years ago. Updated over 4 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
31.07.2020
Due date:
% Done:

0%

Estimated time:
Sorting:
Commit Number:

Description

Hi,

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.

Regards,
Evan

Actions #1

Updated by Daniel D over 4 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.

For example:

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

Actions

Also available in: Atom PDF