Skip to content

count_private for pull requests? #1449

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

You must be logged in to vote

@jpdev01 Thanks for your question. For the stats card, you can use the count_private flag to count the private contributions. For the pull requests and the data on the other cards, it is also possible to include data from private repositories. I have this working on my self-hosted vercel instance and in my dev environment. You can try it out by using the following query in the graphql explorer:

query userInfo($login: String!) {
  user(login: $login) {
    # fetch only owner repos & not forks
    repositories(ownerAffiliations: OWNER, isFork: false, first: 100) {
      nodes {
        name
        languages(first: 10, orderBy: {field: SIZE, direction: DESC}) {
          edges {
            s…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@rickstaa
Comment options

@jpdev01
Comment options

Answer selected by jpdev01
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