Remove redundant Github api connections, when repository is not Github