fix: add CONTRIBUTING.md to AI moderator context

This commit is contained in:
2026-07-30 19:04:44 +02:00
parent 22777339b8
commit ea9cdda28b
+7 -1
View File
@@ -33,7 +33,10 @@ jobs:
return;
}
const coc = fs.readFileSync('.github/CODE_OF_CONDUCT.md', 'utf8');
let coc = '';
let contributing = '';
try { coc = fs.readFileSync('.github/CODE_OF_CONDUCT.md', 'utf8'); } catch (e) {}
try { contributing = fs.readFileSync('CONTRIBUTING.md', 'utf8'); } catch (e) {}
const prompt = [
'You are a community moderator for the Antergos NeXT project.',
@@ -41,6 +44,9 @@ jobs:
'Code of Conduct:',
coc,
'',
'Contributing Guidelines:',
contributing,
'',
'Analyze the following content for violations of this Code of Conduct.',
'Respond with ONLY valid JSON - no markdown, no backticks, no explanation.',
'',