Simplify the issue related url

Turns out we can use the same function for both projects and forks urls

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
Ensure the comment is added to an issue related to the current project
Simplify the routing to view repository information

Turns out we can be smart and use the same functions for projects and forks
so why not be smart

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
Simplify the url mapping for fork related endpoints

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
Remove un-used imports

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
Do not display the `Merged` message if there is a form (then user is creating the pr)

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
Add missing import and do not always set the username

Having always a username leads to routing issues

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