github-tools / github-tools/github
getCollaborators returns null
- Lenguaje dominante
- JavaScript
- Estrellas
- 3.8k
- Forks
- 809
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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?
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
Start at the getCollaborators entry point and inspect how the repository collaborator request is formed. Compare its available options with the GitHub API's affiliation=direct behavior; done means collaborators for a private repository are returned instead of null.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- github, javascript
- Área
- api
- Tipo de issue
- Error
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100