4 ms·
Very cool. I had no idea GitHub's API kept history statistics for stars!
by woodruffw 4y ago
Very cool. I had no idea GitHub's API kept history statistics for stars!
- dabeeeenster 4y agoI don't think it does...
- woodruffw 4y agoIt looks like they're using the `starred_at` timestamp, which is indeed provided by GitHub's stars API[1]. Edit: the code in question[2]. [1]: https://docs.github.com/en/rest/activity/starring#custom-media-types-for-starring https://docs.github.com/en/rest/activity/starring#custom-med... [2]: https://github.com/bytebase/star-history/blob/c8c66678db8015960af40ceddb3d5cc165b0fdac/common/api.ts#L81-L106 https://github.com/bytebase/star-history/blob/c8c66678db8015...
- dabeeeenster 4y agoAh my mistake! Thanks!
- est31 4y agoYeah and therefore, it's not the actual history because it only tracks the dates of when the people who have currently starred it have started starring it. It's a detail, but if someone unstars, it will be treated as if that person had never starred the project in the first place. Or in other terms, whatever graph is shown, you will never see it go down.