From 50dcabb3f5386671b22aa91b5fc1860cfdec58fa Mon Sep 17 00:00:00 2001 From: ryo-ma Date: Tue, 8 Sep 2020 22:05:14 +0900 Subject: [PATCH] Delete contribution count --- src/github_api_client.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/github_api_client.ts b/src/github_api_client.ts index bed482b..6ae538f 100644 --- a/src/github_api_client.ts +++ b/src/github_api_client.ts @@ -7,7 +7,6 @@ export class UserInfo { public totalPullRequests: number, public totalStargazers: number, public totalRepositories: number, - public totalContributed: number, public languageCount: number, public durationYear: number, public acientAccount: number, @@ -31,23 +30,18 @@ export class GithubAPIClient { const query = ` query userInfo($username: String!) { user(login: $username) { - name - login createdAt contributionsCollection { totalCommitContributions restrictedContributionsCount } - repositoriesContributedTo(first: 1, contributionTypes: [COMMIT, ISSUE, PULL_REQUEST, REPOSITORY]) { - totalCount - } pullRequests(first: 1) { totalCount } issues(first: 1) { totalCount } - followers { + followers(first: 1) { totalCount } repositories(first: 100, ownerAffiliations: OWNER, isFork: false, orderBy: {direction: DESC, field: STARGAZERS}) { @@ -107,7 +101,6 @@ export class GithubAPIClient { userData.pullRequests.totalCount, totalStargazers, userData.repositories.totalCount, - userData.repositoriesContributedTo.totalCount, languages.size, durationYear, acientAccount,