badges / badges/shields

Badge request: GitHub last commit to any branch

Open
#6,114 4 comments 5 reactions 0 assignees View on GitHub
service-badge
Dominant language
JavaScript
Stars
27.2k
Forks
5.6k
Avg merge
1d 8h
Merged PRs (30d)
46

Description

:clipboard: **Description**
A badge for github which show the time for the last commit to any branch.

This is what I expected that the "GitHub last commit" badge would do, but it only checks the master branch.

:link: **Data**
I would hope that there is a similar solution as the already existing github badges, but I have no experience in querying github for such data.

:microphone: **Motivation**

For some projects the master branch will only update when there is a new release, which might be much more infrequent than any commits.
I found out that this badge was not really existing when I wanted a "last commit" badge and a "last release" badge. For my repo I can create the "last release" badge for my repo by pointing the current "last commit" badge to the master branch and using a custom label.
Similarly, it's possible to get the last commit to any specific branch, but not the last commit to the repo as a whole.

Contributor guide

Open the contributing guide

Research direction

Review the existing GitHub badge implementations and their data source first, then determine how GitHub exposes the latest commit across any branch. The work is done when a badge can report the repository-wide latest commit while existing branch-specific and master-branch badges continue to work.

Written by the indexing model from the issue text.

Assessment

Tech stack
github, javascript
Domain
api, backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.