Conditionally include commit url

Avoids additional newline when url is not set