From fe26e34359a3d34d8151c5c432d6974a645e979b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B4=A4=E5=BF=83?= <3277200+sentsim@users.noreply.github.com> Date: Sun, 24 Dec 2023 15:26:31 +0800 Subject: [PATCH] =?UTF-8?q?refactor(issue-opened):=20=E7=AE=80=E5=8C=96?= =?UTF-8?q?=E8=AF=AD=E5=8F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/issue-opened.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/issue-opened.yml b/.github/workflows/issue-opened.yml index e041aa99..01c83ff0 100644 --- a/.github/workflows/issue-opened.yml +++ b/.github/workflows/issue-opened.yml @@ -34,7 +34,7 @@ jobs: const payload = context.payload; const isCreatedByBot = payload.sender.type === 'Bot'; const issue = payload.issue; - const isValid = issue.body && issue.body.includes('layui-issue-template'); + const isValid = issue.body?.includes('layui-issue-template'); // 跳过 closed 状态的 issues if (issue.state === 'closed') {