From 9d9c2787c31b9a0b86b38d59931275595e57c007 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B4=A4=E5=BF=83?= <3277200+sentsim@users.noreply.github.com> Date: Fri, 12 Jan 2024 00:05:55 +0800 Subject: [PATCH] =?UTF-8?q?ci(issue):=20=E4=BC=98=E5=8C=96=20issue=20?= =?UTF-8?q?=E8=A2=AB=E5=85=B3=E9=97=AD=E6=97=B6=E7=9A=84=E6=A0=87=E7=AD=BE?= =?UTF-8?q?=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/issue-closed.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/issue-closed.yml b/.github/workflows/issue-closed.yml index 4e03788d..b31c4ec3 100644 --- a/.github/workflows/issue-closed.yml +++ b/.github/workflows/issue-closed.yml @@ -22,11 +22,12 @@ jobs: }; const issue = await github.rest.issues.get(config); - // 是否带有 `bug` 标签 + // 是否带有 `bug`, `wontfix` 标签 const hasBugLabel = issue.data.labels.some(label => label.name === 'bug'); + const hasWontfixLabel = issue.data.labels.some(label => label.name === 'wontfix'); // 对带有 `bug` 标签的 issue 追加 `resolved` 标签,表示 bug 已解决。 - if (hasBugLabel) { + if (hasBugLabel && !hasWontfixLabel) { github.rest.issues.addLabels({ ...config, labels: ['resolved']