diff --git a/.github/workflows/require-maintainer-approval.yml b/.github/workflows/require-maintainer-approval.yml index 3bacd2d..f11b1e1 100644 --- a/.github/workflows/require-maintainer-approval.yml +++ b/.github/workflows/require-maintainer-approval.yml @@ -27,6 +27,12 @@ jobs: script: | const MAINTAINERS = ['imran-siddique']; + const author = context.payload.pull_request.user.login; + if (MAINTAINERS.includes(author)) { + core.info(`Author ${author} is a maintainer, skipping gate`); + return; + } + const association = context.payload.pull_request.author_association; if (association === 'MEMBER' || association === 'OWNER') { core.info(`Author is ${association}, skipping gate`);