From a0436249c4f7a2cc5ecd182166496423c578e079 Mon Sep 17 00:00:00 2001 From: Sergey Fedorov Date: Thu, 5 Dec 2024 12:39:22 +0100 Subject: [PATCH] Fix change log action condition to write warning --- .github/workflows/ensure-changelog-entry.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/ensure-changelog-entry.yml b/.github/workflows/ensure-changelog-entry.yml index 6214d3eb955..7bebe2913bd 100644 --- a/.github/workflows/ensure-changelog-entry.yml +++ b/.github/workflows/ensure-changelog-entry.yml @@ -57,13 +57,11 @@ jobs: with: github-token: ${{secrets.GITHUB_TOKEN}} script: | - const isMember = ${{steps.membership.outputs.result}} const regex = /\*\*Change log entry\*\*\s+(?:(?yes|yep|yeah)(?:\.\s*(?[^\r\nno|nope|none)\.?)\s*/mi const entry = context.payload.pull_request.body.match(regex) const isWriteComment = - !isMember - || null === entry + null === entry || (undefined === entry.groups.answer_yes && undefined === entry.groups.answer_no) || (undefined !== entry.groups.answer_yes && undefined === entry.groups.yes_message) || (undefined !== entry.groups.answer_yes && "" === entry.groups.yes_message.trim())