mirror of
https://github.com/github/codeql-action.git
synced 2026-10-21 10:11:28 +00:00
Exclude "Mergeback" and "Update default bundle" PRs from CHANGELOG.md change warning
This commit is contained in:
12
.github/workflows/pr-checks.yml
vendored
12
.github/workflows/pr-checks.yml
vendored
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user