Skip to content

Add GitHub Action to track repository clone traffic#71

Open
dave3d wants to merge 4 commits into
mainfrom
track-clone-traffic
Open

Add GitHub Action to track repository clone traffic#71
dave3d wants to merge 4 commits into
mainfrom
track-clone-traffic

Conversation

@dave3d

@dave3d dave3d commented Jun 29, 2026

Copy link
Copy Markdown
Member

Adds a daily scheduled workflow (.github/workflows/track-clones.yml) that:

  • Calls the GitHub Traffic API to fetch clone statistics
  • Accumulates daily records in .github/clone-traffic.json, deduplicating by timestamp
  • Commits updated data back to the repo with [skip ci]

Setup required: Add a PAT with repo traffic read access as a repository secret named TRAFFIC_TOKEN.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a scheduled GitHub Actions workflow to collect GitHub Traffic “clones” metrics daily, persist them into a repo-tracked JSON file, and push updates back to the repository.

Changes:

  • Introduces .github/workflows/track-clones.yml with a daily cron + manual dispatch trigger.
  • Fetches clone stats via the GitHub REST Traffic API and appends them into .github/clone-traffic.json.
  • Commits and pushes updated tracking data back to the repo with a fixed commit message.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/track-clones.yml Outdated
Comment thread .github/workflows/track-clones.yml Outdated
Comment thread .github/workflows/track-clones.yml
dave3d and others added 3 commits June 30, 2026 12:41
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants