#5089 Get the default branch of the target repo when linking for new PR
Merged by pingou. Opened by pingou.
fix_new_pr_url  into  master

Download 5089.patch

Rather than assuming the default branch is the same in the source
and the target repo, we generate the new PR url using the default
branch of the target repo.

Fixes https://pagure.io/pagure/issue/5086

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

:thumbsup:

rebased onto 07b517e2fa1f40ea872cf60eb06b92ce2cd88e09

Since this code isn't covered by tests, I'm going to merge it directly :)

Pull-Request has been merged by pingou

Metadata