Skip to content

About

GitHub Actions workflow that monitors star changes across your repos and sends notifications

Resources

Stars

2 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

1,053 Commits

Folders and files

Repository files navigation

GitHub Star Checker

한국어

Monitor GitHub stars across all your repositories — automatically. Get notified via GitHub Issues or Gmail whenever stars change.

0 dependencies · GitHub Actions only · Single workflow file

How It Works

flowchart LR
    A["⏰ Cron (hourly)"] --> B["Fetch star counts\nfor all repos"]
    B --> C{"Stars\nchanged?"}
    C -->|Yes| D["🔔 Notify\n(Issue / Gmail)"]
    C -->|No| E["💾 Commit\nstars.json"]
    D --> E
Loading
  1. Runs every hour by default (configurable via workflow_dispatch)
  2. Fetches star counts for all public, non-fork repositories you own
  3. Compares with previous counts stored in stars.json
  4. Sends notifications on changes — GitHub Issue (default) or Gmail, switchable via workflow_dispatch
  5. Generates weekly and monthly star reports on the first run of each new week / month
  6. Commits updated stars.json back to the repository

On the first run, it only records current counts — no notifications are sent.

Quick Start

No local setup needed. Everything runs on GitHub Actions in its own forked repo — your existing repositories stay untouched.

  1. Fork this repository
  2. Enable workflows in the Actions tab (disabled by default on forks)
  3. Add secret STAR_MONITOR_TOKEN in Settings > Secrets and variables > Actions
  4. Run the workflow manually, or wait for the next scheduled run
Workflow dispatch UI

You can change the check interval, notification channel, and trigger reports manually from the Actions tab.

Prerequisites

Secrets

Secret Value Required
STAR_MONITOR_TOKEN Classic PAT Yes
GMAIL_USER Gmail address for sending Only for Gmail
GMAIL_APP_PASSWORD Gmail app password Only for Gmail
NOTIFY_EMAIL Email address to receive notifications Only for Gmail

Or via GitHub CLI:

gh secret set STAR_MONITOR_TOKEN

Notification Examples

GitHub Issue

Star changes are appended as comments to one star-notification issue per UTC calendar month, created when the first change is detected (for example ⭐ Star Alerts (2026-09)). Each comment carries the repositories, star deltas, total stars, and check timestamp. The monthly issue is reused even after it is closed, so keep its label and the month marker in its body intact.

Gmail still sends a separate email for each detected change when enabled, and weekly/monthly reports remain standalone issues. The screenshot below shows the alert content, which is now recorded in a comment.

Star notification issue

Email

Star notification email
Subject: ⭐ GitHub Star Alert: 3 repo(s) changed!

⬆️ Gained:
- user/repo-a: 3 → 5 (+2)
- user/repo-b: 0 → 1 (+1)

⬇️ Lost:
- user/repo-c: 10 → 8 (-2)

Total stars: 42
Checked at: 2026-02-18T12:13:19Z

Weekly / Monthly Report

Weekly report issue

Usage & Limits

GitHub Actions is free and unmetered for public repositories, so the hourly schedule costs nothing there. In a private repository the free tier provides 2,000 minutes/month and every run is billed rounded up to a full minute, so an hourly schedule consumes ~720 minutes/month even though a run takes ~10 seconds.

File Structure

.github/workflows/check-stars.yml  # Workflow (all logic inline)
stars.json                          # Latest star counts (auto-updated)
stars-history.json                  # Daily snapshots for reports (32-day retention)

About

GitHub Actions workflow that monitors star changes across your repos and sends notifications

Resources

Stars

2 stars

Watchers

0 watching

Forks

Contributors