moved github fetch function to global since we use it in vimplugins