Skip to content

Does top languages count forks? #1255

Answered by Hephaest
Metacinnabar asked this question in Q&A
Discussion options

You must be logged in to vote

Dear @GoodPro712, the answer is NOT. You can check the corresponding API callback:

const fetcher = (variables, token) => {
  return request(
    {
      query: `
      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 {
                  size
                  node {
                    color
                    name
                  }
                }
              }
            }
          }
        }
      }

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Metacinnabar
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants