jgehrcke / github-repo-stats

GitHub Action for advanced repository traffic analysis and reporting
Apache License 2.0
292 stars 39 forks source link

Bug: single stargazers data point not drawn #85

Open olets opened 6 months ago

olets commented 6 months ago

I have a repo for which GHRS has logged one row of stargazer data

stargazer-snapshots.csv:

time_iso8601,stargazers_cumulative_snapshot
2023-12-13 23:32:24+00:00,4

That renders with reasonable axes but without a point

stargazers plot screenshot

 

Maybe there's a bug such that multiple data points are required?

jgehrcke commented 6 days ago

Maybe there's a bug such that multiple data points are required?

I'd say the answer is 'yes'! :) Haha.. yeah I tried to keep things simple here but of course at the boundaries something is always wrong. Even after having added tests. This once worked, and (no surprise) one of the later patches has introduced this regression.

I will probably try to fix that when I dive into that code next time. Until then get yourself some more stargazers on another day as a solution ! :-) :sparkles:

olets commented 3 days ago

Haha yes I think it's even simpler than that: wait! I don't remember what repo the original bug report went with, but here's a similar one:

stargazer chart with one stargazer for over a year