fix: allow additional text after lgtm in approval comments
This commit is contained in:
2
.github/workflows/approve-contributor.yml
vendored
2
.github/workflows/approve-contributor.yml
vendored
@@ -29,7 +29,7 @@ jobs:
|
|||||||
const commentBody = context.payload.comment.body || '';
|
const commentBody = context.payload.comment.body || '';
|
||||||
const approvedFile = '.github/APPROVED_CONTRIBUTORS';
|
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');
|
console.log('Comment does not match lgtm');
|
||||||
core.setOutput('status', 'skipped');
|
core.setOutput('status', 'skipped');
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user