diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-04-26 00:09:16 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-04-26 00:09:26 +0300 |
| commit | a9c8de7eec3981967623bcf5b421e2ccb584c8b6 (patch) | |
| tree | c0bb235d7079b5c233adda68a42276972c59e99b /.github/workflows/approve-contributor.yml | |
| parent | b11c756ad95a591fd71f44086584cc1e4d9c6ac7 (diff) | |
chore: use approve command for contributor gate
Diffstat (limited to '.github/workflows/approve-contributor.yml')
| -rw-r--r-- | .github/workflows/approve-contributor.yml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/.github/workflows/approve-contributor.yml b/.github/workflows/approve-contributor.yml index 07176a67..c195fc69 100644 --- a/.github/workflows/approve-contributor.yml +++ b/.github/workflows/approve-contributor.yml @@ -2,7 +2,7 @@ name: Approve Contributor on: issue_comment: - types: [created] + types: [created, edited] jobs: approve: @@ -29,8 +29,8 @@ jobs: const commentBody = context.payload.comment.body || ''; const approvedFile = '.github/APPROVED_CONTRIBUTORS'; - if (!/^\s*lgtm\b/i.test(commentBody)) { - console.log('Comment does not match lgtm'); + if (!/(^|\s)\/approve(?=$|\s)/i.test(commentBody)) { + console.log('Comment does not contain /approve'); core.setOutput('status', 'skipped'); return; } |
