Skip CHANGELOG.md modification warning for release and backport PRs

This commit is contained in:
Mario Campos
2026-10-08 11:48:09 -05:00
parent f7aa9dc1ba
commit 780e947861

View File

@@ -269,7 +269,16 @@ jobs:
fi
- name: Post a warning about modifying CHANGELOG.md
if: needs.other-checks.outputs.changelog-changed == 'true'
# 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.
if: >-
needs.other-checks.outputs.changelog-changed == 'true' &&
!(
startsWith(github.event.pull_request.title, 'Merge ') &&
contains(github.event.pull_request.title, ' into releases/v')
)
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_NUMBER: ${{ github.event.pull_request.number }}