From d9493602f2ad7c621ac6b895fa6a86fadcaad8e3 Mon Sep 17 00:00:00 2001 From: Marco Franssen Date: Thu, 30 Jul 2020 09:05:28 +0200 Subject: [PATCH] Only fetch 'direct' collaborators --- lib/github/graphql/graphql.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/github/graphql/graphql.go b/lib/github/graphql/graphql.go index 36ad6fc..613c52d 100644 --- a/lib/github/graphql/graphql.go +++ b/lib/github/graphql/graphql.go @@ -27,7 +27,7 @@ type Repository struct { UpdatedAt time.Time `json:"updated_at,omitempty"` PushedAt time.Time `json:"pushed_at,omitempty"` RepositoryTopics RepositoryTopics `graphql:"repositoryTopics(first: 25)" json:"repository_topics,omitempty"` - Collaborators Collaborators `graphql:"collaborators(first: 15)" json:"collaborators,omitempty"` + Collaborators Collaborators `graphql:"collaborators(first: 15, affiliation: DIRECT)" json:"collaborators,omitempty"` } type RepositoryTopics struct {