github-tools / github-tools/github

getCollaborators returns null

オープン
#650 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
3.8k
フォーク
809
PR マージ指標
30日以内にマージされた PR はありません

説明

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?

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
github, javascript
領域
api
issue の種類
バグ
難易度
2/5
見積もり時間
1〜3時間
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。