Now, var repo = github.getRepo(reponame); this is, maybe var repo = github.getRepo(username, reponame);