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
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