-
-
Notifications
You must be signed in to change notification settings - Fork 3
Viewing Reports
Multiple ways to access your star tracking data.
All data is automatically saved to a dedicated branch (default: star-tracker-data).
Every file the branch holds, and the condition under which each one appears, is tabulated in Data Management.
Navigate to:
https://github.com/YOUR_USER/YOUR_REPO/tree/star-tracker-data
GitHub automatically renders README.md with all charts visible.
Note
That README.md is the report, rewritten in full on every run. Editing it by hand is safe but pointless:
the next run overwrites the file wholesale rather than merging into it. Anything you want to keep belongs
on another branch, or in a file the action does not write.
Display your star count in your main README.
[](https://github.com/YOUR_USER/YOUR_REPO/tree/star-tracker-data)<!-- Comparison chart -->

<!-- Forecast chart -->

<!-- Per-repo chart (replace owner-repo with your repo) -->
Access data in subsequent workflow steps for custom integrations.
| Output | Description |
|---|---|
lost-stars |
Stars lost against the comparison baseline (per run, not cumulative) |
new-stargazers |
New stargazers detected against the stored stargazer list, which every writing run rewrites - not affected by compare-against
|
new-stars |
Stars gained against the comparison baseline (per run, not cumulative) |
notification-sent |
Whether an email was actually delivered (false when SMTP is unconfigured, email-to is empty, or the send failed). A send-on-no-changes email sets it true even though should-notify is false
|
report |
Full Markdown report |
report-csv |
CSV report of the run |
report-html |
HTML report (for email) |
report-html-path |
File path to the HTML report (for large reports / custom mailers). Written on every run, including read-only ones and runs where no repository matched, and written outside the data branch so it never reaches a commit |
should-notify |
Whether the notification threshold was reached (cumulative across runs) |
stars-changed |
Whether stars changed against the comparison baseline (true/false) |
total-stars |
Total star count |
Note
The comparison baseline is the previous run by default, and compare-against can move it to 24h, 7d or 30d ago. new-stars and lost-stars describe a single run and carry no memory of whether a notification was sent - gate recurring emails on should-notify, which accumulates until it fires. See Email Notifications.
- name: Track stars
id: tracker
uses: fbuireu/github-star-tracker@v1
with:
github-token: ${{ secrets.STAR_TRACKER_TOKEN }}
- name: Print summary
run: |
echo "Total stars: ${{ steps.tracker.outputs.total-stars }}"
echo "Changed: ${{ steps.tracker.outputs.stars-changed }}"
echo "New: ${{ steps.tracker.outputs.new-stars }}"
echo "Lost: ${{ steps.tracker.outputs.lost-stars }}"Send HTML reports directly to your inbox.
See Email Notifications for complete setup.
curl https://raw.githubusercontent.com/YOUR_USER/YOUR_REPO/star-tracker-data/stars-data.jsongit clone -b star-tracker-data --single-branch \
https://github.com/YOUR_USER/YOUR_REPO.git star-datacurl -s https://raw.githubusercontent.com/YOUR_USER/YOUR_REPO/star-tracker-data/stars-data.json \
| jq '.snapshots[0].totalStars'- Public repos: data branch is publicly visible
- Private repos: data branch inherits the repo's access restrictions; badges won't render for unauthorized users
- Star Trend Charts - Chart types and embedding
- Email Notifications - Email setup
- Data Management - How data is stored and rotated