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
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
- Runs every hour by default (configurable via
workflow_dispatch) - Fetches star counts for all public, non-fork repositories you own
- Compares with previous counts stored in
stars.json - Sends notifications on changes — GitHub Issue (default) or Gmail, switchable via
workflow_dispatch - Generates weekly and monthly star reports on the first run of each new week / month
- Commits updated
stars.jsonback to the repository
On the first run, it only records current counts — no notifications are sent.
No local setup needed. Everything runs on GitHub Actions in its own forked repo — your existing repositories stay untouched.
- Fork this repository
- Enable workflows in the Actions tab (disabled by default on forks)
- Add secret
STAR_MONITOR_TOKENin Settings > Secrets and variables > Actions - Run the workflow manually, or wait for the next scheduled run
|
You can change the check interval, notification channel, and trigger reports manually from the Actions tab.
- Classic Personal Access Token with
repo+workflowscopesThe default
GITHUB_TOKENcan only access the current repository. A separate PAT is needed to list all your repositories. - (Optional) Gmail with 2-Step Verification + App Password — only for
gmailorbothnotification channel
| 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_TOKENStar 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.
|
|
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
|
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.
.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)



