fix: allow additional text after lgtm in approval comments

This commit is contained in:
Mario Zechner 2026-01-18 13:06:55 +01:00
parent 64a8b64b52
commit 97673461eb

View file

@ -29,7 +29,7 @@ jobs:
const commentBody = context.payload.comment.body || '';
const approvedFile = '.github/APPROVED_CONTRIBUTORS';
if (!/^\s*lgtm\s*$/i.test(commentBody)) {
if (!/^\s*lgtm\b/i.test(commentBody)) {
console.log('Comment does not match lgtm');
core.setOutput('status', 'skipped');
return;