Skip to content

How do the PR stats work? #1686

Answered by rickstaa
ionknowmyname asked this question in Q&A
Discussion options

You must be logged in to vote

@ionknowmyname Thanks for your interest in our tool. The PRs update according to this graphQL query:

query userInfo($login: String!) {
  user(login: $login) {
    repositories(first: 100, orderBy: {direction: DESC, field: STARGAZERS}) {
      totalCount
      nodes {
        name
        pullRequests(first: 1) {
          totalCount
        }
      }
    }
  }
}
{"login": "ionknowmyname"}

You can test it out on https://docs.github.com/en/graphql/overview/explorer. For your account, I see that none of your Public repositories has a pull request. As a result, when using the public Vercel instance, which has no permissions to get data about your private repositories, the PR on the card are s…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ionknowmyname
Comment options

Answer selected by ionknowmyname
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants