Open njzjz opened 8 months ago
Some investigation:
Refined GitHub (a browser extension) uses GraphQL to implement it.
repository(owner: $owner, name: $name) {
release(tagName: $tag) {
releaseAssets(first: 100) {
nodes {
name
downloadCount
}
}
}
}
Besides, this issue is a TODO in current codebase.
The link is broken, and I guess https://github.com/badgen/badgen.net/blob/3d48d296181bbbe7301b721699ca70c148184ecc/pages/api/github.ts#L179 may help.
Feature description:
Support the download statistics for GitHub Releases.
Problem and motivation:
Some packages are distributed through GitHub Releases. It's nice to support the download statistics for it.
shield.io has supported it: https://shields.io/badges/git-hub-all-releases
Is this something you're interested in working on?
Yes, but need some instructions.