github-tools / github-tools/github
getCollaborators returns null
- Langage dominant
- JavaScript
- Étoiles
- 3.8k
- Forks
- 809
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
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?
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
Commencez par le point d’entrée getCollaborators et examinez comment la requête des collaborateurs du dépôt est formée. Comparez ses options disponibles avec le comportement affiliation=direct de la GitHub API ; le travail est terminé lorsque les collaborateurs d’un dépôt privé sont renvoyés au lieu de null.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- github, javascript
- Domaine
- api
- Type d'issue
- Bug
- Difficulté
- 2/5
- Temps estimé
- 1-3 heures
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100