зеркало из https://github.com/microsoft/ghcrawler.git
support outside collaborators
This commit is contained in:
Родитель
b22cd1341b
Коммит
a622fd8aaf
|
@ -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}', ''));
|
||||
|
|
Загрузка…
Ссылка в новой задаче