From 989bcf8c251640a183ae0971fb04d866a205141f Mon Sep 17 00:00:00 2001 From: pbootcms Date: Sat, 27 Jun 2026 19:15:03 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E8=B0=83=E6=95=B4=20LGTM=20=E6=8C=87?= =?UTF-8?q?=E4=BB=A4=E4=B8=BA=E6=96=9C=E6=9D=A0=E5=91=BD=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/lgtm-label.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lgtm-label.yml b/.github/workflows/lgtm-label.yml index 4ddc5d1..096da39 100644 --- a/.github/workflows/lgtm-label.yml +++ b/.github/workflows/lgtm-label.yml @@ -23,7 +23,7 @@ jobs: const commenter = context.payload.comment.user.login; const command = context.payload.comment.body.trim().toUpperCase(); - if (command !== 'LGTM') { + if (command !== '/LGTM') { core.info(`Ignoring comment: ${context.payload.comment.body}`); return; } @@ -36,7 +36,7 @@ jobs: const allowedPermissions = new Set(['admin', 'maintain', 'write']); if (!allowedPermissions.has(permission.permission)) { - core.info(`Ignoring LGTM from ${commenter}: permission is ${permission.permission}.`); + core.info(`Ignoring /lgtm from ${commenter}: permission is ${permission.permission}.`); return; } From fce4b76ca5ef5af47ec745c8cb0ba536599a619e Mon Sep 17 00:00:00 2001 From: pbootcms Date: Sat, 27 Jun 2026 19:19:02 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E9=99=90=E5=88=B6=20LGTM=20=E6=8C=87?= =?UTF-8?q?=E4=BB=A4=E5=A4=A7=E5=B0=8F=E5=86=99=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/lgtm-label.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lgtm-label.yml b/.github/workflows/lgtm-label.yml index 096da39..259c73b 100644 --- a/.github/workflows/lgtm-label.yml +++ b/.github/workflows/lgtm-label.yml @@ -21,9 +21,9 @@ jobs: const { owner, repo } = context.repo; const issue_number = context.payload.issue.number; const commenter = context.payload.comment.user.login; - const command = context.payload.comment.body.trim().toUpperCase(); + const command = context.payload.comment.body.trim(); - if (command !== '/LGTM') { + if (!['/lgtm', '/LGTM'].includes(command)) { core.info(`Ignoring comment: ${context.payload.comment.body}`); return; }