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
4bd383f885
commit
50dcabb3f5
1 changed files with 1 additions and 8 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue