You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add download_count next to each release artifact #670
Show the download_count next to each artifact for a release. This information can be fetched from the API as the download_count feature of each artifact, but is not available in the UI.
IssueHunt Summary
[
<
i
m
g
s
r
c
'
h
t
t
p
s
:
/
/
a
v
a
t
a
r
s
2
.
g
i
t
h
u
b
u
s
e
r
c
o
n
t
e
n
t
.
c
o
m
/
u
/
1
4
3
2
3
3
7
0
?
v
4
'
a
l
t
'
d
o
t
c
o
n
n
o
r
'
w
i
d
t
h
2
4
h
e
i
g
h
t
2
4
d
o
t
c
o
n
n
o
r
]
(
h
t
t
p
s
:
/
/
i
s
s
u
e
h
u
n
t
.
i
o
/
u
/
d
o
t
c
o
n
n
o
r
)
GET /repos/:owner/:repo/releases/tags/:tag returns an empty array for assets, which is weird because I see two binaries attached to this release. @bfred-it any idea? 🤔
GET /repos/:owner/:repo/releases/tags/:tag returns an empty array for assets
Which repo + tag did you try this on? GET https://api.github.com/repos/adobe-fonts/source-code-pro/releases/tags/variable-fonts correctly returns the assets for me.
You can also attach binary assets (such as compiled executables,
minified scripts, documentation) to a release.
Considering the details above is a fact, we might need to re-think on whether this is a broadly used feature and/or is it worth adding the download_count for manually uploaded binaries (aka assets).. or maybe it's just me, I haven't ever downloaded any assets.
@tanmayrajani yeah, I went through the same process, I just didn't elaborate my steps. I came to the same
conclusion, but was hoping the person who released the latest would be able to confirm it.
@jgierer12 try it for this repo. Also, the comment above should explain why we're not seeing any data returned in the assets array in my example.
Yeah, realized you tried to get the zipped/tarballed downloads. Reading the GitHub docs, it doesn't seem like there's a way to get download counts for those, unfortunately.
I personally don't see the use-case for wanting the download count of the automatic assets. Does anyone even download those when you can just clone the repo instead.
I do, however, really want the download count of manually uploaded assets.
Activity
sindresorhus commentedon Oct 18, 2017
Sounds useful. @greg-hellings Would you be interested in doing a pull request?
greg-hellings commentedon Oct 18, 2017
I've never worked a Firefox plugin before. I'll see what I can do.
yeskunall commentedon Oct 18, 2017
GET /repos/:owner/:repo/releases/tags/:tagreturns an empty array for assets, which is weird because I see two binaries attached to this release. @bfred-it any idea? 🤔jgierer12 commentedon Oct 18, 2017
Which repo + tag did you try this on?
GET https://api.github.com/repos/adobe-fonts/source-code-pro/releases/tags/variable-fontscorrectly returns the assets for me.tanmayrajani commentedon Oct 18, 2017
@yeskunall according to this SO answer and looking at the sample
assetsJSON object, I thinkassetsare only the manually uploaded files with a release and not the auto-generated zip files.Also, quoting the GitHub blog,
Considering the details above is a fact, we might need to re-think on whether this is a broadly used feature and/or is it worth adding the
download_countfor manually uploaded binaries (akaassets).. or maybe it's just me, I haven't ever downloaded any assets.yeskunall commentedon Oct 18, 2017
@tanmayrajani yeah, I went through the same process, I just didn't elaborate my steps. I came to the same
conclusion, but was hoping the person who released the
latestwould be able to confirm it.@jgierer12 try it for this repo. Also, the comment above should explain why we're not seeing any data returned in the
assetsarray in my example.jgierer12 commentedon Oct 18, 2017
Yeah, realized you tried to get the zipped/tarballed downloads. Reading the GitHub docs, it doesn't seem like there's a way to get download counts for those, unfortunately.
yeskunall commentedon Oct 18, 2017
Well, this feature might still be useful if/when binaries are uploaded manually, but I'll leave that part to the maintainers. 🚶
yakov116 commentedon Oct 18, 2017
@yeskunall any android repo this would be useful
sindresorhus commentedon Mar 28, 2019
I personally don't see the use-case for wanting the download count of the automatic assets. Does anyone even download those when you can just clone the repo instead.
I do, however, really want the download count of manually uploaded assets.
IssueHuntBot commentedon Apr 11, 2019
@IssueHunt has funded $60.00 to this issue.
issuehunt-oss commentedon Jun 24, 2019
@sindresorhus has rewarded $54.00 to @dotconnor. See it on IssueHunt