fix: core maintainers commit check

Signed-off-by: Camila Belo <camilaibs@gmail.com>
This commit is contained in:
Camila Belo
2023-10-11 11:27:44 +02:00
parent 409e24c2ea
commit d749e50595
+8 -8
View File
@@ -43,6 +43,13 @@ const PLUGIN_AND_MODULE_ROLES = [
'frontend-plugin-module',
];
const CORE_MAINTAINER_EMAILS = [
'ben@blam.sh',
'freben@gmail.com',
'poldsberg@gmail.com',
'johan.haals@gmail.com',
];
async function main() {
const pluginsDirectory = path.resolve(rootDirectory, 'plugins');
@@ -109,14 +116,7 @@ async function main() {
}
// exclude core maintainers' commits
if (
[
'Johan Haals <johan.haals@gmail.com>',
'Patrik Oldsberg <poldsberg@gmail.com>',
'Fredrik Adelöw <freben@gmail.com>',
'blam <ben@blam.sh>',
].includes(author)
) {
if (CORE_MAINTAINER_EMAILS.some(email => author.includes(email))) {
return false;
}