fix: add CONTRIBUTING.md to AI moderator context
This commit is contained in:
@@ -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.',
|
||||
'',
|
||||
|
||||
Reference in New Issue
Block a user