Github releases: time since last release (instead of "date of last release")
- Dominant language
- JavaScript
- Stars
- 27.2k
- Forks
- 5.6k
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 46
Description
### 📋 Description
It would be great to have a badge that is like your existing github release date (`/github/release-date/:user/:repo`), except I'd like something that expresses the number of hours/days since the last update instead of the date of the last update.
So something like `last update: 8h ago` or `last update: 1min ago` or `last update: 1wk ago`
### 🔗 Data
I hope you'll be able to use the same existing API for the github release date (`/github/release-date/:user/:repo`) badge, and just format it differently based on the current date.
### 🎤 Motivation
I've got [a project](https://github.com/beyarkay/eskom-calendar/) which updates a release based on [loadshedding](https://en.wikipedia.org/wiki/South_African_energy_crisis) announcement by the local government. These announcements happen about every 3 days, and it's critical for my users that they're seeing the latest data, and not some stale data. Having this badge would allow users to verify that 1. they saw the government announce new schedules 1 minute ago, and 2. my project has been updated with those schedules.
Contributor guide
Research direction
Start at the existing /github/release-date/:user/:repo badge entry point and trace how its release data is retrieved and formatted. Compare that behavior with the requested relative-time forms such as hours, minutes, and weeks; done means a corresponding badge is available and reflects the age of the latest release.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- github, javascript
- Domain
- api
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100