get the contents of a file in a github repo (uses the github API)