github-tools / github-tools/github

getCollaborators returns null

Aperta
#650 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
3.8k
Fork
809
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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?

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.