MCPcopy Create free account
hub / github.com/massCodeIO/massCode / getReleaseDownloads

Function getReleaseDownloads

docs/website/scripts/update-github-stats.mjs:72–79  ·  view source on GitHub ↗
(releases)

Source from the content-addressed store, hash-verified

70}
71
72function getReleaseDownloads(releases) {
73 return releases.reduce((total, release) => {
74 if (release.draft)
75 return total
76
77 return total + release.assets.reduce((assetTotal, asset) => assetTotal + asset.download_count, 0)
78 }, 0)
79}
80
81async function updateStats() {
82 const existingStats = await readExistingStats()

Callers 1

updateStatsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected