From a7751767660c607ffa93bebbabc359d614d0acd4 Mon Sep 17 00:00:00 2001 From: Alexandr Garbuzov Date: Sat, 10 Jun 2023 11:40:41 +0300 Subject: [PATCH] Remove restrictedContributionsCount from GraphQL query and tests (#2799) --- src/fetchers/stats-fetcher.js | 1 - tests/api.test.js | 1 - tests/fetchStats.test.js | 1 - 3 files changed, 3 deletions(-) diff --git a/src/fetchers/stats-fetcher.js b/src/fetchers/stats-fetcher.js index 9ae23df..bad5fe2 100644 --- a/src/fetchers/stats-fetcher.js +++ b/src/fetchers/stats-fetcher.js @@ -46,7 +46,6 @@ const GRAPHQL_STATS_QUERY = ` login contributionsCollection { totalCommitContributions - restrictedContributionsCount } repositoriesContributedTo(first: 1, contributionTypes: [COMMIT, ISSUE, PULL_REQUEST, REPOSITORY]) { totalCount diff --git a/tests/api.test.js b/tests/api.test.js index 0f14378..4fb965e 100644 --- a/tests/api.test.js +++ b/tests/api.test.js @@ -33,7 +33,6 @@ const data_stats = { repositoriesContributedTo: { totalCount: stats.contributedTo }, contributionsCollection: { totalCommitContributions: stats.totalCommits, - restrictedContributionsCount: 100, }, pullRequests: { totalCount: stats.totalPRs }, openIssues: { totalCount: stats.totalIssues }, diff --git a/tests/fetchStats.test.js b/tests/fetchStats.test.js index 5466f66..f42b8fa 100644 --- a/tests/fetchStats.test.js +++ b/tests/fetchStats.test.js @@ -12,7 +12,6 @@ const data_stats = { repositoriesContributedTo: { totalCount: 61 }, contributionsCollection: { totalCommitContributions: 100, - restrictedContributionsCount: 50, }, pullRequests: { totalCount: 300 }, openIssues: { totalCount: 100 },