mirror of
https://github.com/reiyua/github-profile-trophy-reiyua-mirror.git
synced 2026-11-17 06:02:09 +11:00
Delete contribution count
This commit is contained in:
parent
1f195de06e
commit
d7a2d3d30f
1 changed files with 1 additions and 8 deletions
|
|
@ -7,7 +7,6 @@ export class UserInfo {
|
||||||
public totalPullRequests: number,
|
public totalPullRequests: number,
|
||||||
public totalStargazers: number,
|
public totalStargazers: number,
|
||||||
public totalRepositories: number,
|
public totalRepositories: number,
|
||||||
public totalContributed: number,
|
|
||||||
public languageCount: number,
|
public languageCount: number,
|
||||||
public durationYear: number,
|
public durationYear: number,
|
||||||
public acientAccount: number,
|
public acientAccount: number,
|
||||||
|
|
@ -31,23 +30,18 @@ export class GithubAPIClient {
|
||||||
const query = `
|
const query = `
|
||||||
query userInfo($username: String!) {
|
query userInfo($username: String!) {
|
||||||
user(login: $username) {
|
user(login: $username) {
|
||||||
name
|
|
||||||
login
|
|
||||||
createdAt
|
createdAt
|
||||||
contributionsCollection {
|
contributionsCollection {
|
||||||
totalCommitContributions
|
totalCommitContributions
|
||||||
restrictedContributionsCount
|
restrictedContributionsCount
|
||||||
}
|
}
|
||||||
repositoriesContributedTo(first: 1, contributionTypes: [COMMIT, ISSUE, PULL_REQUEST, REPOSITORY]) {
|
|
||||||
totalCount
|
|
||||||
}
|
|
||||||
pullRequests(first: 1) {
|
pullRequests(first: 1) {
|
||||||
totalCount
|
totalCount
|
||||||
}
|
}
|
||||||
issues(first: 1) {
|
issues(first: 1) {
|
||||||
totalCount
|
totalCount
|
||||||
}
|
}
|
||||||
followers {
|
followers(first: 1) {
|
||||||
totalCount
|
totalCount
|
||||||
}
|
}
|
||||||
repositories(first: 100, ownerAffiliations: OWNER, isFork: false, orderBy: {direction: DESC, field: STARGAZERS}) {
|
repositories(first: 100, ownerAffiliations: OWNER, isFork: false, orderBy: {direction: DESC, field: STARGAZERS}) {
|
||||||
|
|
@ -107,7 +101,6 @@ export class GithubAPIClient {
|
||||||
userData.pullRequests.totalCount,
|
userData.pullRequests.totalCount,
|
||||||
totalStargazers,
|
totalStargazers,
|
||||||
userData.repositories.totalCount,
|
userData.repositories.totalCount,
|
||||||
userData.repositoriesContributedTo.totalCount,
|
|
||||||
languages.size,
|
languages.size,
|
||||||
durationYear,
|
durationYear,
|
||||||
acientAccount,
|
acientAccount,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue