Exclude "Mergeback" and "Update default bundle" PRs from CHANGELOG.md change warning

This commit is contained in:
Mario Campos
2026-10-08 12:06:32 -05:00
parent 780e947861
commit ae75d466ce

View File

@@ -269,15 +269,17 @@ jobs:
fi
- name: Post a warning about modifying CHANGELOG.md
# Release and backport PRs created by `update-release-branch.ts` are titled
# `Merge <source-branch> into <target-branch>`, where the target branch is always a
# `releases/v*` branch. These PRs deliberately modify CHANGELOG.md as part of the release
# process, so skip the warning for them.
# Release, backport, mergeback, and bundle-update PRs deliberately modify CHANGELOG.md,
# so skip the warning for these automation flows.
if: >-
needs.other-checks.outputs.changelog-changed == 'true' &&
!(
startsWith(github.event.pull_request.title, 'Merge ') &&
contains(github.event.pull_request.title, ' into releases/v')
contains(github.event.pull_request.title, ' into 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/')
)
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}