This commit is contained in:
Jeff McAffer 2016-12-12 08:08:32 -08:00
Родитель b22cd1341b
Коммит a622fd8aaf
2 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -199,6 +199,7 @@ class GitHubFetcher {
team: { tokenTraits: ['admin'] },
members: { tokenTraits: ['admin'] },
collaborators: { tokenTraits: ['push'] },
outside_collaborators: { tokenTraits: ['push'], Accept: 'application/vnd.github.korra-preview' },
reactions: { headers: { Accept: 'application/vnd.github.squirrel-girl-preview' } },
clones: { tokenTraits: ['admin'], headers: { Accept: 'application/vnd.github.spiderman-preview' } },
referrers: { tokenTraits: ['admin'], headers: { Accept: 'application/vnd.github.spiderman-preview' } },

Просмотреть файл

@ -134,7 +134,8 @@ class Processor {
this._addRoot(request, 'owner', 'user');
this._addRelation(request, 'teams', 'team');
this._addRelation(request, 'collaborators', 'user', document.collaborators_url.replace('{/collaborator}', ''));
// this._addRelation(request, 'collaborators', 'user', document.collaborators_url.replace('{/collaborator}', ''));
this._addRelation(request, 'outside_collaborators', 'user', document.collaborators_url.replace('{/collaborator}', '?affiliation=outside'));
this._addRelation(request, 'contributors', 'user');
this._addRelation(request, 'subscribers', 'user');
this._addCollection(request, 'issues', 'issue', document.issues_url.replace('{/number}', ''));