Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getCollaborators returns null #650

Open
wesleywh opened this issue Apr 19, 2021 · 0 comments
Open

getCollaborators returns null #650

wesleywh opened this issue Apr 19, 2021 · 0 comments

Comments

@wesleywh
Copy link

I have generated a personal access token and done the following code:

        // Login
        var git = new github({
            token: github_token
        })
        var git_repo = git.getRepo(owner, repo)

        // Get List Of Collaboraters
        git_repo.getCollaborators(got_collaborators);

The github_token is my personal access token. The owner is my github username, and the repo is the name of my private repo. This is returning null even though there are ~10 collaborators on this project.

Googling around showed me that someone else had this problem and fixed it by adding ?affiliation=direct and it solved it. There there an equivalent I can do here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant