From 928548a094382019a950465f393317b0b7134ea0 Mon Sep 17 00:00:00 2001 From: Mario Campos Date: Thu, 8 Oct 2026 12:57:52 -0500 Subject: [PATCH] Refine exclusion conditions for CHANGELOG-modification comment Refactor conditions for PR title checks in workflow. Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- .github/workflows/pr-checks.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml index 39c319e5d..db067db46 100644 --- a/.github/workflows/pr-checks.yml +++ b/.github/workflows/pr-checks.yml @@ -274,8 +274,13 @@ jobs: if: >- needs.other-checks.outputs.changelog-changed == 'true' && !( - startsWith(github.event.pull_request.title, 'Merge ') && - contains(github.event.pull_request.title, ' into releases/v') || + startsWith(github.event.pull_request.title, 'Merge main into releases/v') && + startsWith(github.event.pull_request.head.ref, 'update-v') && + startsWith(github.event.pull_request.base.ref, 'releases/v') || + startsWith(github.event.pull_request.title, 'Merge releases/v') && + contains(github.event.pull_request.title, ' into releases/v') && + startsWith(github.event.pull_request.head.ref, 'backport-v') && + startsWith(github.event.pull_request.base.ref, 'releases/v') || startsWith(github.event.pull_request.title, 'Mergeback ') && startsWith(github.event.pull_request.head.ref, 'mergeback/') || startsWith(github.event.pull_request.title, 'Update default bundle to ') &&