reformed the repo2github function