Dont comment for maintainers

This commit is contained in:
shamoon 2025-04-19 16:14:39 -07:00
parent 4922f05177
commit 11a1f20676

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},