Skip to content

Improve preview link discovery#6149

Merged
mstange merged 2 commits into
firefox-devtools:mainfrom
skylarkning:improve-preview-link-discovery
Jul 7, 2026
Merged

Improve preview link discovery#6149
mstange merged 2 commits into
firefox-devtools:mainfrom
skylarkning:improve-preview-link-discovery

Conversation

@skylarkning

@skylarkning skylarkning commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Summary

  • The preview-link bot now will follow referenced PRs as well as issues.
  • Let it reuse paths from existing Main and Deploy preview links.
  • Keep broken share.firefox.dev links non-fatal so the bot can keep looking or fall back to /.

Example

If PR #6137 says Follow-up to #6017, and #6017 has:

[Main](https://main--perf-html.netlify.app/public/abc/)

then the bot can add this to PR #6137:

[Main](https://main--perf-html.netlify.app/public/abc/) | [Deploy preview](https://deploy-preview-6137--perf-html.netlify.app/public/abc/)

Test

node --test .github/scripts/add-preview-links.test.mjs

@codecov

codecov Bot commented Jul 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.50%. Comparing base (b894055) to head (b2c0eba).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6149   +/-   ##
=======================================
  Coverage   83.50%   83.50%           
=======================================
  Files         342      342           
  Lines       36522    36522           
  Branches    10221    10224    +3     
=======================================
  Hits        30497    30497           
  Misses       5597     5597           
  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.

Comment thread .github/scripts/add-preview-links.mjs Outdated
@skylarkning skylarkning force-pushed the improve-preview-link-discovery branch 3 times, most recently from f6b4480 to dff6be2 Compare July 7, 2026 15:07
@skylarkning skylarkning force-pushed the improve-preview-link-discovery branch from dff6be2 to 0f717c1 Compare July 7, 2026 15:33
@skylarkning skylarkning requested a review from mstange July 7, 2026 17:34
@mstange mstange enabled auto-merge July 7, 2026 18:18
@mstange mstange merged commit faf67a7 into firefox-devtools:main Jul 7, 2026
21 checks passed
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