Skip to content

Add show-asset-download-count feature - #2027

Merged
fregante merged 27 commits into
refined-github:masterfrom
dotconnor:add-download-count
Jun 5, 2019
Merged

fregante merged 27 commits into
refined-github:masterfrom
dotconnor:add-download-count

Conversation

@dotconnor

@dotconnor dotconnor commented May 12, 2019 •

Copy link
Copy Markdown
Contributor

This only displays the count when a specific release page:
image

I don't think it would be really useful on the main releases page unless you just get the latest release's stats.

Tested on:

Closes #670

@dotconnor dotconnor changed the title feat: add download count to assets on release pages Add show-asset-download-count feature May 12, 2019

@fregante fregante left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also these 😅

@fregante

This comment has been minimized.

@fregante

fregante commented Jun 5, 2019

Copy link
Copy Markdown
Member

Can you update the readme and add a screenshot field to features.add?

@fregante fregante left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually I'm seeing one last issue. Downloads that are lower than 100 have a .0

https://github.com/electron/electron/releases

Screenshot 2019-06-05 at 17 01 47

Also, if you want, it would be nice to have a heatmap-like similar to blame views.

Screenshot 2019-06-05 at 17 17 50

But maybe as a separate PR, if anyone wants it

@dotconnor

Copy link
Copy Markdown
Contributor Author

All numbers are converted to at least 3 decimals with toPrecision(3) so any numbers with less than 100 downloads are gonna have a .0 attached, I added an early return for those numbers.

@fregante
fregante merged commit a15b8e0 into refined-github:master Jun 5, 2019
@fregante

fregante commented Jun 5, 2019

Copy link
Copy Markdown
Member

Thank you @dotconnor! Sorry for the many reviews 🤗

@dotconnor

Copy link
Copy Markdown
Contributor Author

@bfred-it Nah it's all good.

Let me know if there are any other issues/features you would like me to work on while I have some free time.

@yakov116

yakov116 commented Jun 5, 2019

Copy link
Copy Markdown
Member

@dotconnor thank you!!
This was one of my long awaited features.

@sindresorhus

Copy link
Copy Markdown
Member

@fregante fregante mentioned this pull request Jun 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

Add download_count next to each release artifact

4 participants