Skip to content

Add scheduled GitHub Actions workflow to email weekly repository traffic report - #55

Merged
kzalite merged 3 commits into
mainfrom
copilot/add-email-traffic-report-workflow
Jul 27, 2026
Merged

Add scheduled GitHub Actions workflow to email weekly repository traffic report#55
kzalite merged 3 commits into
mainfrom
copilot/add-email-traffic-report-workflow

Conversation

Copilot AI commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Adds a workflow that fetches GitHub traffic data for DHI/HydroEO and emails a formatted summary on a weekly schedule, with manual dispatch support for testing.

Workflow (.github/workflows/email-traffic-report.yml)

  • Runs every Monday at 08:30 UTC via schedule; also supports workflow_dispatch
  • Fetches all four traffic endpoints (views, clones, popular/referrers, popular/paths) using gh api with GH_TOKEN — no manual auth header construction
  • Formats totals + daily breakdowns into a plain-text report
  • Sends via dawidd6/action-send-mail@v6

All credentials and the recipient address come exclusively from repository secrets:

Secret Purpose
TRAFFIC_TOKEN PAT with repo write access (required by traffic API)
SMTP_HOST / SMTP_PORT SMTP server
SMTP_USERNAME / SMTP_PASSWORD SMTP auth / sender
TRAFFIC_REPORT_TO Recipient address(es)

Copilot AI changed the title [WIP] Add scheduled GitHub Actions workflow for traffic report Add scheduled GitHub Actions workflow to email weekly repository traffic report Jul 16, 2026
Copilot AI requested a review from rpalDHI July 16, 2026 12:54
@rpalDHI
rpalDHI marked this pull request as ready for review July 16, 2026 16:25
@rpalDHI

rpalDHI commented Jul 16, 2026

Copy link
Copy Markdown
Collaborator

Pending approval of personal access tokens from DHI. DO NOT MERGE YET

@rpalDHI
rpalDHI marked this pull request as draft July 16, 2026 16:27
@rpalDHI
rpalDHI marked this pull request as ready for review July 27, 2026 07:08
@rpalDHI
rpalDHI requested review from connorchewning and kzalite and removed request for connorchewning July 27, 2026 07:08
@kzalite
kzalite merged commit 66ffcd8 into main Jul 27, 2026
5 checks passed
@kzalite
kzalite deleted the copilot/add-email-traffic-report-workflow branch July 27, 2026 07:15
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