diff --git a/.github/workflows/ensure-changelog-entry.yml b/.github/workflows/ensure-changelog-entry.yml index 7bebe2913bd..cbbff628f51 100644 --- a/.github/workflows/ensure-changelog-entry.yml +++ b/.github/workflows/ensure-changelog-entry.yml @@ -57,7 +57,7 @@ jobs: with: github-token: ${{secrets.GITHUB_TOKEN}} script: | - const regex = /\*\*Change log entry\*\*\s+(?:(?yes|yep|yeah)(?:\.\s*(?[^\r\nno|nope|none)\.?)\s*/mi + const regex = /\*\*Change log entry\*\*\s+(?:\s*)?(?:(?yes|yep|yeah)(?:\s?[.,:-]\s?(?[^\r\nno|nope|none)\.?.*?)/ims const entry = context.payload.pull_request.body.match(regex) const isWriteComment =