DenverCoder1 / DenverCoder1/github-readme-streak-stats
Streak does not count days when the only activity is creating a repository
- Dominant language
- PHP
- Stars
- 7.1k
- Forks
- 1.8k
- Avg merge
- 9d 6h
- Merged PRs (30d)
- 2
Description
**Describe the bug**
The streak does not consistently handle days where the only GitHub activity is creating a new repository.
GitHub shows repository creation as a contribution on the "Contribution Graph", but the streak widget does not always count that day as an active streak day.
In some cases, the streak temporarily includes the repository creation day, but after a refresh it recalculates and removes that day from the streak.
**Expected behavior**
The streak calculation should handle repository creation contributions consistently. A day where the only GitHub activity is creating a repository should also be counted as an active streak day, matching GitHub's contribution graph.
**Additional context**
This creates a mismatch between GitHub's contribution graph and the streak shown by the widget.
Contributor guide
Research direction
Start by tracing the streak calculation and the GitHub contribution data it consumes, focusing on how repository-creation activity is represented. Reproduce a day whose only activity is creating a repository, refresh the widget, and verify that the day remains consistently counted as an active streak day.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100