Stats not correct?
#1797
-
Hello! I wonder when I manually calculate the all-time commits that I land on 4.1K but the stats card only counts 1.8K, and I've enabled both the |
Beta Was this translation helpful? Give feedback.
Answered by
rickstaa
May 31, 2022
Replies: 1 comment 1 reply
-
@FoksVHox I think your issue is related to the confusion between commits and contributions (see #1679). You can test the data we use from the GitHub GraphQL API using the following syntax in the GraphQL explorer: query userInfo($login: String!) {
user(login: $login) {
name
login
contributionsCollection {
totalCommitContributions
restrictedContributionsCount
}
repositoriesContributedTo(
first: 1
contributionTypes: [COMMIT, ISSUE, PULL_REQUEST, REPOSITORY]
) {
totalCount
}
pullRequests(first: 1) {
totalCount
}
openIssues: issues(states: OPEN) {
totalCount
}
closedIssues: issues(states: CLOSED) {
totalCount
}
followers {
totalCount
}
repositories(
first: 100
ownerAffiliations: OWNER
orderBy: {direction: DESC, field: STARGAZERS}
) {
totalCount
nodes {
stargazers {
totalCount
}
}
}
}
} You can then use the following in the query variables field. {"login": "FoksVHox"} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
FoksVHox
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@FoksVHox I think your issue is related to the confusion between commits and contributions (see #1679). You can test the data we use from the GitHub GraphQL API using the following syntax in the GraphQL explorer: