From: Mark Bell Date: Sun, 28 Mar 2021 23:01:37 +0000 (+0100) Subject: GREP for PR reference accepts references that are split over a line (#2072) X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/dc8b0a43837a6280e0d7d7d4e71a5282083c6b01?hp=4218ae18c06df82904b9c9eac166510ac0ebee7c GREP for PR reference accepts references that are split over a line (#2072) Fixes #2070 --- diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index 434950d..58a8c09 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -16,6 +16,6 @@ jobs: - name: Grep CHANGES.md for PR number if: contains(github.event.pull_request.labels.*.name, 'skip news') != true run: | - grep -P "PR #${{ github.event.pull_request.number }}[^0-9]" CHANGES.md || \ + grep -Pz "PR( |\n\s*)#${{ github.event.pull_request.number }}[^0-9]" CHANGES.md || \ (echo "Please add 'PR #${{ github.event.pull_request.number }}' change line to CHANGES.md" && \ exit 1)