github-readme-stats
github-readme-stats copied to clipboard
request: total number of forks
I would like to have total number of forks in the stats.
could I be assigned to this?
Feel free to create a PR 🚀. I assigned you to this issue. However, I can not promise that this will be merged into the master branch shortly since there are much more pressing PRs open. I am, however, happy to review it and attach the hacktoberfest-accepted
label. The number of forks are found under the forkCount
object of the GraphQL query:
query userInfo($login: String!) {
user(login: $login) {
name
login
contributionsCollection {
totalCommitContributions
restrictedContributionsCount
}
repositories(
first: 100
ownerAffiliations: OWNER
orderBy: {direction: DESC, field: STARGAZERS}
) {
nodes {
name
stargazers {
totalCount
}
forkCount
}
}
}
}
@DIvkov575 Turns out this was already done in #289 but closed by the stale bot. Maybe it is a good idea to first check with @anuraghazra how he thinks this feature can be implemented without bloating the stats card (see https://github.com/anuraghazra/github-readme-stats/pull/289#issuecomment-668995938).
is this issue resolved or need help please let me know
is this issue resolved or need help please let me know
Hi @g-nitin-1, appreciate your interest in contributing! Just a heads up, the feature you're looking into was previously tackled in https://github.com/anuraghazra/github-readme-stats/pull/289. It underwent review by @anuraghazra, but unfortunately, the author closed the pull request and removed the branch.
I've reestablished the branch at https://github.com/anuraghazra/github-readme-stats/tree/issue%23287, but be warned, that resolving conflicts might pose a challenge due to significant divergence 😅. If you're up for it, create a fresh pull request based on the proposed changes from the original one. Also, make sure to address any comments left by @anuraghazra. Cheers!