Skip to content

Skip Semantic Diff for fork PRs into maintenance branches - #9320

Merged
cknitt merged 1 commit into
masterfrom
semantic-diff-skip-maintenance
Nov 18, 2026
Merged

cknitt merged 1 commit into
masterfrom
semantic-diff-skip-maintenance

Conversation

@cknitt

@cknitt cknitt commented Nov 18, 2026

Copy link
Copy Markdown
Member

Fork PRs run the Semantic Diff workflow through pull_request_target. GitHub always takes that workflow from master, but the job checks out the PR's base commit to get the renderer. Maintenance branches have no scripts/commitRecords.js, so the job fails with MODULE_NOT_FOUND. For example, #9318 into maintenance/12.x failed this way.

This adds branches-ignore: ["maintenance/**"] to the pull_request_target trigger. Fork PRs into master and into feature branches still run it. PRs from branches of this repo into a maintenance branch already skipped it, because pull_request reads the workflow from the merge, and maintenance branches don't have it.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Kbf3gGHHcoxuVopoQtEcJ7

A fork PR runs the workflow from master but checks out its base commit for
the renderer. Maintenance branches don't have the renderer script, so the
job failed there (seen on #9318 into maintenance/12.x).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Kbf3gGHHcoxuVopoQtEcJ7
Signed-off-by: Christoph Knittel <ck@cca.io>
@github-actions

Copy link
Copy Markdown

Changelog

🏠 Internal

  • Skip the Semantic Diff workflow for fork pull requests into maintenance branches, which have no renderer.

Semantic Diff

1 commit · Full page

Skip Semantic Diff for fork PRs into maintenance branches

de02d3d · cknitt + Claude · Nov 18, 2026, 19:11 UTC

A fork PR runs the workflow from master but checks out its base commit for the renderer. Maintenance branches don't have the renderer script, so the job failed there (seen on #9318 into maintenance/12.x).

@cknitt
cknitt marked this pull request as ready for review November 18, 2026 19:15
@cknitt
cknitt enabled auto-merge (squash) November 18, 2026 19:15
@github-actions

Copy link
Copy Markdown

✅ Compiler benchmarks

Allocated words

In total: 638,078,157 → 638,078,227 (±0.00%).

Generated projects: 629,801,783 → 629,802,701 (±0.00%).

None of the 265 benchmarks changed by 0.1% or more.

Instructions

In total: 9,209,577,229 → 9,209,577,229 (±0.00%).

None of the 33 benchmarks changed by 0.1% or more.

Output size

In total: 25,874,868 → 25,874,868 (±0.00%).

None of the 13 benchmarks changed by 0.1% or more.

Pull request de02d3d compared with base fd7a39f in this run.

@codecov

codecov Bot commented Nov 18, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.12%. Comparing base (fd7a39f) to head (de02d3d).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #9320      +/-   ##
==========================================
- Coverage   82.12%   82.12%   -0.01%     
==========================================
  Files         456      456              
  Lines       65652    65652              
==========================================
- Hits        53917    53915       -2     
- Misses      11735    11737       +2     

see 1 file with indirect coverage changes

🚀 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.

@pkg-pr-new

pkg-pr-new Bot commented Nov 18, 2026

Copy link
Copy Markdown

Open in StackBlitz

rescript

npm i https://pkg.pr.new/rescript@9320

@rescript/belt

npm i https://pkg.pr.new/@rescript/belt@9320

@rescript/darwin-arm64

npm i https://pkg.pr.new/@rescript/darwin-arm64@9320

@rescript/linux-arm64

npm i https://pkg.pr.new/@rescript/linux-arm64@9320

@rescript/linux-x64

npm i https://pkg.pr.new/@rescript/linux-x64@9320

@rescript/runtime

npm i https://pkg.pr.new/@rescript/runtime@9320

@rescript/win32-x64

npm i https://pkg.pr.new/@rescript/win32-x64@9320

commit: de02d3d

@github-actions

Copy link
Copy Markdown

@cknitt
cknitt merged commit 0b2246c into master Nov 18, 2026
22 checks passed
@cknitt
cknitt deleted the semantic-diff-skip-maintenance branch November 18, 2026 19:35
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