Skip to content

ci(PE-1209): Fix and expand weekly and monthly traffic reports - #12

Merged
evan-morgan merged 6 commits into
mainfrom
PE-1209/traffic-workflow
Mar 25, 2026
Merged

ci(PE-1209): Fix and expand weekly and monthly traffic reports#12
evan-morgan merged 6 commits into
mainfrom
PE-1209/traffic-workflow

Conversation

@evan-morgan

@evan-morgan evan-morgan commented Mar 20, 2026

Copy link
Copy Markdown
Contributor

What does this change?

  • Fixes 403 error on both traffic reports by using a PAT (TRAFFIC_PAT) instead of the default GITHUB_TOKEN, which lacks access to the traffic API
  • Adds new funnel-oriented metrics: stars, forks, issues opened, external PRs, top referrers, and top content
  • Drops non-funnel metrics (clones, conversion rate, open issue count, avg issue age, avg first response time) that were noisy or CI-inflated
  • Extracts GitHub API calls into a dedicated github-api.js module
  • Adds emoji labels and two-column layout to Slack report sections for readability
  • Aligns the monthly report with all weekly improvements (new metrics, emoji, layout, TRAFFIC_PAT)
  • Filters pull request paths from Top Content and sorts entries by unique visits

What area does this affect?

.github/scripts/ and .github/workflows/

Checklist

  • I tested this (code runs, links work, etc.)
  • I checked for typos
  • Code examples have helpful comments

@evan-morgan evan-morgan changed the title Fix and expand weekly traffic report Fix and expand weekly and monthly traffic reports Mar 20, 2026
@evan-morgan evan-morgan changed the title Fix and expand weekly and monthly traffic reports ci(PE-1209): Fix and expand weekly and monthly traffic reports Mar 20, 2026
@evan-morgan
evan-morgan merged commit 780181a into main Mar 25, 2026
evan-morgan added a commit that referenced this pull request Mar 27, 2026
* fix(PE-1209): use TRAFFIC_PAT for weekly traffic report

* feat(PE-1209): add stars, forks, issues, PRs, referrers, and health metrics to weekly report

* refactor(PE-1209): drop non-funnel metrics, add emoji to slack report

* chore: add weekly traffic snapshot 2026-03-20

* refactor(PE-1209): align monthly report with weekly improvements

* refactor(PE-1209): filter PR paths and sort content by uniques in both reports

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@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