mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-22 00:00:27 +00:00
fix: allow additional text after lgtm in approval comments
This commit is contained in:
parent
64a8b64b52
commit
97673461eb
1 changed files with 1 additions and 1 deletions
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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue