Right now, the page JS grabs the last 65 events.
But what if there's a bunch of failed checks because of some GitHub Actions issue, and a bunch of checks don't happen, and then maybe they start up again?
In that case,
Algorithm idea, assuming the interval is 15 minutes:
- Parse the text file into a set of events, where the timestamp is a parsed value so we can do math with it
- Use the current time as the starting point
- Look through the event log:
- The cursor timestamp is now
- (A) Is there an event that happened 15 minutes or less before the cursor timestamp?
- If yes: set the cursor timestamp to that event's timestamp. Loop back to point (A).
- If not: set the cursor timestamp to 15 minutes earlier than the current cursor timestamp. Loop back to point (A).
Optional:
- Set a timer to refresh the render every minute or so. Would that work with commits?
Right now, the page JS grabs the last 65 events.
But what if there's a bunch of failed checks because of some GitHub Actions issue, and a bunch of checks don't happen, and then maybe they start up again?
In that case,
Algorithm idea, assuming the interval is 15 minutes:
Optional: