From de02d3d049efd90337900dd0acf85b64baafaf99 Mon Sep 17 00:00:00 2001 From: Christoph Knittel Date: Wed, 18 Nov 2026 19:11:09 +0000 Subject: [PATCH] Skip Semantic Diff for fork PRs into maintenance branches 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 Claude-Session: https://claude.ai/code/session_01Kbf3gGHHcoxuVopoQtEcJ7 Signed-off-by: Christoph Knittel --- .github/workflows/semantic_diff.yml | 5 +++++ changes/semantic-diff-maintenance-branches.internal.md | 1 + 2 files changed, 6 insertions(+) create mode 100644 changes/semantic-diff-maintenance-branches.internal.md diff --git a/.github/workflows/semantic_diff.yml b/.github/workflows/semantic_diff.yml index aa12a9b83c..696e485e9b 100644 --- a/.github/workflows/semantic_diff.yml +++ b/.github/workflows/semantic_diff.yml @@ -18,6 +18,10 @@ name: Semantic Diff # executes only the default branch's code, and the fork's commits are # fetched as git data and never checked out. # +# Maintenance branches have no renderer, so a pull request from a fork into +# one of them doesn't run this workflow. One from a branch of this +# repository doesn't either, since the merge has no workflow. +# # Pages are never deleted, so the links in the comments stay valid after a # pull request is merged or closed. @@ -26,6 +30,7 @@ on: types: [opened, synchronize, reopened] pull_request_target: types: [opened, synchronize, reopened] + branches-ignore: ["maintenance/**"] concurrency: group: semantic-diff-${{ github.event_name }}-${{ github.event.pull_request.number }} diff --git a/changes/semantic-diff-maintenance-branches.internal.md b/changes/semantic-diff-maintenance-branches.internal.md new file mode 100644 index 0000000000..a718203b84 --- /dev/null +++ b/changes/semantic-diff-maintenance-branches.internal.md @@ -0,0 +1 @@ +- Skip the Semantic Diff workflow for fork pull requests into maintenance branches, which have no renderer.