Skip to content

Add weekly repository traffic tracking workflow#817

Draft
Copilot wants to merge 2 commits into
mainfrom
copilot/track-repo-stats
Draft

Add weekly repository traffic tracking workflow#817
Copilot wants to merge 2 commits into
mainfrom
copilot/track-repo-stats

Conversation

Copilot AI commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Summary

GitHub only retains traffic data (views/clones) for 2 weeks. This adds a workflow that persists it long-term by appending to CSV files on a dedicated traffic branch, using sangonzal/repository-traffic-action.

  • Workflow .github/workflows/traffic.yml: runs weekly (Sun 55 23 * * 0) and on manual workflow_dispatch; checks out the traffic branch, collects stats, commits the CSVs.
  • No extra action dependencies for committing: traffic data is committed and pushed with plain git (skips cleanly when there's no diff) rather than a third-party commit action.
  • Hardening: third-party actions pinned to commit SHAs; permissions: {} baseline with contents: write scoped to the job, consistent with existing workflows.

Operational prerequisites (not code): a traffic branch must exist, and a TRAFFIC_ACTION_TOKEN secret (PAT with repo scope) must be configured for the traffic API.

Checklist

  • A human-readable description of the changes was provided to include in CHANGELOG

@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Copilot AI changed the title Add repository traffic tracking workflow Add weekly repository traffic tracking workflow Jun 9, 2026
Copilot AI requested a review from peter-leonov-ch June 9, 2026 13:28
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.

3 participants