From adf96ddac25d2932937d9037e84a743af121b590 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82?= Date: Sun, 16 Aug 2026 14:58:22 +0000 Subject: [PATCH] update the ai moderator to not activate if i comment in a PR --- .github/workflows/ai-moderator.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ai-moderator.yml b/.github/workflows/ai-moderator.yml index 89f5934..6961b24 100644 --- a/.github/workflows/ai-moderator.yml +++ b/.github/workflows/ai-moderator.yml @@ -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}`); - } + }