github-tools / github-tools/github

getCollaborators returns null

Offen
#650 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
JavaScript
Sterne
3.8k
Forks
809
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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?

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.