From 9fe741e77d850a82a15baa665d9365395d865677 Mon Sep 17 00:00:00 2001 From: Mario Campos Date: Thu, 8 Oct 2026 15:26:56 -0500 Subject: [PATCH] Simplify `if` condition of CHANGELOG-comment-post step --- .github/workflows/pr-checks.yml | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml index 4ae39623c..6a21611f4 100644 --- a/.github/workflows/pr-checks.yml +++ b/.github/workflows/pr-checks.yml @@ -272,19 +272,10 @@ jobs: # Release, backport, mergeback, and bundle-update PRs deliberately modify CHANGELOG.md, # so skip comment management entirely for these automation flows. if: >- - !( - 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 ') && - startsWith(github.event.pull_request.head.ref, 'update-bundle/') - ) + !startsWith(github.event.pull_request.head.ref, 'update-v') && + !startsWith(github.event.pull_request.head.ref, 'backport-v') && + !startsWith(github.event.pull_request.head.ref, 'mergeback/') && + !startsWith(github.event.pull_request.head.ref, 'update-bundle/') env: COMMENT_MARKER: "" GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}