update the ai moderator to not activate if i comment in a PR

This commit is contained in:
Michał
2026-08-16 14:58:22 +00:00
committed by GitHub
parent 76e1bb1fc1
commit adf96ddac2
+7 -1
View File
@@ -42,6 +42,12 @@ jobs:
return;
}
const actor = context.payload.sender?.login;
if (actor === 'c-ludenberg') {
console.log('Repo owner, skipping moderation');
return;
}
const isComment = context.payload.comment !== undefined;
const isDiscussion = context.payload.discussion !== undefined;
@@ -179,4 +185,4 @@ jobs:
console.log('Action completed: ' + decision.action);
} catch (err) {
console.log(`GitHub API error: ${err}`);
}
}