#2681 Print out the URL to existing PR(s) or to create one in the default hook
Merged by pingou. Opened by pingou.
pr_urls  into  master

Download 2681.patch

With this commit, when you make a push it will print out the URLs you
can use to create a new PR or check out the existing/updated one.

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

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

rebased onto e30f9b8042bb657fd496c8c48fcc8cec29177446

1 new commit added

  • Fix the unit-tests

Was looking for this functionality long time ago =)

you can skip creating variable seen and use for .. else .. construction. which also eliminates need for doing len() =)

for...else doesn't seem to do exactly what I want:

>>> for el in [1,2]:
...     print el
... else:
...     print None
...     
... 
1
2
None

hmmmm... then do it your way =)

Thanks for the review ! :)

Pull-Request has been merged by pingou

Metadata