Skip to content

Add workflow to insert PR preview links#6133

Open
skylarkning wants to merge 1 commit into
firefox-devtools:mainfrom
skylarkning:main
Open

Add workflow to insert PR preview links#6133
skylarkning wants to merge 1 commit into
firefox-devtools:mainfrom
skylarkning:main

Conversation

@skylarkning

Copy link
Copy Markdown

Summary

Adds a GitHub Actions workflow that automatically inserts profiler preview links into PR descriptions when they are missing.

The workflow:

  • Runs on pull_request_target
  • Checks whether the PR body already has a deploy preview link
  • Looks for profiler/share links in the PR body or linked issue body/comments
  • Resolves share.firefox.dev links to the final profiler path
  • Adds [Main] | [Deploy preview] links to the PR description

Testing

  • node --test .github/scripts/add-preview-links.test.mjs
  • node --check .github/scripts/add-preview-links.mjs
  • node --check .github/scripts/add-preview-links.test.mjs
  • Live-tested on my fork with a temporary issue and PR; the workflow successfully updated the PR body with the expected preview links.

@codecov

codecov Bot commented Jun 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.47%. Comparing base (de0953b) to head (ecfaf86).
⚠️ Report is 21 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6133   +/-   ##
=======================================
  Coverage   83.47%   83.47%           
=======================================
  Files         342      342           
  Lines       36097    36097           
  Branches    10098    10098           
=======================================
  Hits        30131    30131           
  Misses       5538     5538           
  Partials      428      428           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

1 participant