Keep your GitHub contribution graph green every day.
- 🔄 Auto Commit - Automatic daily commits
- 📅 Backfill History - Fill specific years or recent N days with color depth control
Click the Fork button in the top right corner to fork this repository to your account.
Go to your forked repository, click the Actions tab, and enable GitHub Actions.
GitHub Actions will automatically commit once a day, and your contribution graph will turn green.
By default, commits are made daily at 9:00 AM Beijing Time (UTC 1:00) with a random delay (0-5 minutes) for a more natural look.
Go to the Actions tab, click "Daily Commit", then click "Run workflow" to trigger manually.
Go to the Actions tab, click "Fill History", then click "Run workflow".
| Parameter | Description | Default |
|---|---|---|
| year | Target year (leave empty to backfill recent N days) | - |
| days | Number of days to backfill (only when year is not specified) | 365 |
| level | Color depth (1-4) | 2 |
Backfill last year:
- year: (leave empty)
- days: 365
- level: 2
Backfill specific year:
- year: 2023
- days: (leave empty)
- level: 3
Color depth levels:
- level 1: Lightest (1 commit per day)
- level 2: Light (3 commits per day)
- level 3: Dark (5 commits per day)
- level 4: Darkest (10 commits per day)
Edit the cron expression in .github/workflows/commit.yml:
schedule:
- cron: '0 1 * * *' # UTC 1:00 = Beijing Time 9:00Edit the config.json file:
{
"commit_message": "feat: contribution {date}",
"content_templates": [
"Contribution on {date} {time}",
"Daily commit: {date}",
"Another day, another commit: {date}"
],
"random_content": true
}| Variable | Description |
|---|---|
| {date} | Date (YYYY-MM-DD) |
| {time} | Time (HH:MM:SS) |
| Config | Description | Default |
|---|---|---|
| cron | Commit schedule | Daily at UTC 1:00 |
| commit_message | Commit message | feat: contribution YYYY-MM-DD |