Make the Github url helper more resilient

Don't fall over when it's not a url in the format
<user>/<repo> and add some tests around this.