Does top languages count forks? #1255
-
Do the languages used in forks count towards the top language? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
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
}
}
}
}
}
}
}
`,
variables,
},
{
Authorization: `bearer ${token}`,
},
);
}; You can check the source code by clicking this link. Additional informationIf you want to explore more or play a little bit with this filter query, please read this official Github GraphQL Document. |
Beta Was this translation helpful? Give feedback.
-
Pasting my comment in #1122 (comment) since it explains why forks are currently not supported.
|
Beta Was this translation helpful? Give feedback.
Dear @GoodPro712, the answer is NOT. You can check the corresponding API callback: