#5074 Allow updating the target branch when editing a PR
Merged by pingou. Opened by pingou.
update_target  into  master

Download 5074.patch

With this commit we will be able to update a PR to change its target
branch in cases that branch disappears.
For example, you have a PR opened against the "master" branch but the
project decides to change its default branch to "main" and delete the
"master" branch to avoid confusion.
Now, the PR that was opened against "master" will error saying it cannot
find the target branch for the PR (and the diff of the PR will thus be
empty). With this commit, one will be able to edit the PR and change
the target branch from "master" to "main", thus allowing the review to
continue.

Signed-off-by: Pierre-Yves Chibon pingou@pingoured.fr

rebased onto 3fb0e3891aba0dbce7ee3cba906d5e4cbefd35e9

pretty please pagure-ci rebuild

pretty please pagure-ci rebuild

rebased onto d6bd53a6004acbb91264aff9878a90be342ba043

The test failure is due to the new black landing on updates-testing

:thumbsup:

rebased onto 3aa3662c06e57cc3f8edd0519dec365e066e3d3f

rebased onto 96e5bbc41980b07e917418da5cea39ec578508af

rebased onto 8b8b3e6a20ba902d7b3695286131519958e9a0d5

pretty please pagure-ci rebuild

I'm going to get this in anyway, py3 rpm and py2 rpm are working it looks like pip is failing because it has a version of pip too old in the tox venv... Not quite sure how to address this tbh

Pull-Request has been merged by pingou

Metadata