#2652 Consolidate the code in our custom markdown processor
Merged by pingou. Opened by pingou.
improve_mk  into  master

Download 2652.patch

With this commit we are consolidating all the pieces of code needing to
extract the namespace, project name and user name corresponding to the
page displayed in a single place simplifying the maintenance of said
piece of code and avoiding to fix bugs in multiple places.

This simple consolidate fixes automatically linking to a commit by
providing its hash in markdown.

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

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

Note: the new function is already 100% covered by the existing tests

rebased onto 17a1bf668d2a24c6b8192cd2a758f526e57a28e9

:thumbsup:

Thanks :)

Pull-Request has been merged by pingou

Metadata