Skip to content

Commit

Permalink
Ignore deleted files in changelog_check
Browse files Browse the repository at this point in the history
Only check files that were added, copied, modified or renamed in
changelog check.
  • Loading branch information
svenklemm committed Sep 20, 2023
1 parent 270ea4f commit f81a171
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/changelog-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
folder=".unreleased"
# Get the list of modified files in this pull request
files=$(git --no-pager diff --name-only HEAD $(git merge-base HEAD ${{ github.event.pull_request.base.sha }}))
files=$(git --no-pager diff --diff-filter=ACMR --name-only $(git merge-base HEAD ${{ github.event.pull_request.base.sha }}) HEAD)
if echo "$BODY" | egrep -qsi "Disable-check:[[:space:]]*force-changelog-file"; then
# skip changelog checks if forced
Expand Down

0 comments on commit f81a171

Please sign in to comment.