Dont comment for maintainers

This commit is contained in:
shamoon 2025-04-19 16:14:39 -07:00
parent aa42486810
commit 6f409947dd
No known key found for this signature in database

View File

@ -66,6 +66,16 @@ jobs:
const pr = context.payload.pull_request;
const user = pr.user.login;
const { data: members } = await github.rest.orgs.listMembers({
org: 'paperless-ngx',
});
const memberLogins = members.map(m => m.login.toLowerCase());
if (memberLogins.includes(user.toLowerCase())) {
core.info('Skipping comment: user is org member');
return;
}
const body = `
Hello @${user},