update the ai moderator to not activate if i comment in a PR
This commit is contained in:
@@ -42,6 +42,12 @@ jobs:
|
|||||||
return;
|
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 isComment = context.payload.comment !== undefined;
|
||||||
const isDiscussion = context.payload.discussion !== undefined;
|
const isDiscussion = context.payload.discussion !== undefined;
|
||||||
|
|
||||||
@@ -179,4 +185,4 @@ jobs:
|
|||||||
console.log('Action completed: ' + decision.action);
|
console.log('Action completed: ' + decision.action);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.log(`GitHub API error: ${err}`);
|
console.log(`GitHub API error: ${err}`);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user