Track the stars automatically
ByronHsu opened this issue ยท 7 comments
I found that the stars of projects listed on it are different to the actual one because of the time.
Hope that someone can help track the stars dynamically.
Automatically is great!
We can utilize Shields
project by adding markdown image like this:
![GitHub stars](https://img.shields.io/github/stars/{USER}/{REPO}.svg?style=flat-square&label=Stars)
Taking this project as an example (USER=hueitan
, REPO=made-in-taiwan
),
we got a badge like this:
And it's free! ๐ฏ
Also, I have a suggestion:
We can add url to the shields image in a tidy way in markdown
// README.md
[![MIT-stars][MIT-stars-shield]][[MIT]]
// ...
// add those in the bottom:
[MIT-stars-shield]: https://img.shields.io/github/stars/hueitan/made-in-taiwan.svg?style=flat-square&label=Stars
[MIT]: https://github.com/hueitan/made-in-taiwan
we got a badge that can link to repo like this:
Good idea! Do you want to submit a pr for this shield?
@hueitan it's my pleasure ๐
Any preference to the style/wording of the badge?
IMO considering narrow space in README I would recommend this small one:
![stars](https://img.shields.io/github/stars/hueitan/made-in-taiwan.svg?style=flat-square&label=๐
I will make badges with url pointing to the repo
UPDATE:
Recently another new badge service -- badgen service (https://badgen.net/) has launched,
as an alternative to shields.io.
In theory it would be faster since it's built on Now CDN (so need no cache control).
More badge examples: https://badgen.net/#github