From ea9cdda28bfb2a7f33ad10578ad3d2dbf8ca107e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82?= Date: Thu, 30 Jul 2026 19:04:44 +0200 Subject: [PATCH] fix: add CONTRIBUTING.md to AI moderator context --- .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 8742e31..3d96402 100644 --- a/.github/workflows/ai-moderator.yml +++ b/.github/workflows/ai-moderator.yml @@ -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.', '',