From c650b12d6368ebbd4115af9163d65251de7348ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ulises=20Gasc=C3=B3n?= Date: Thu, 28 Aug 2025 15:26:22 +0200 Subject: [PATCH] ci: add AI Moderator workflow for issue and comment detection --- .github/workflows/moderator.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/moderator.yml diff --git a/.github/workflows/moderator.yml b/.github/workflows/moderator.yml new file mode 100644 index 000000000000..156d42906048 --- /dev/null +++ b/.github/workflows/moderator.yml @@ -0,0 +1,28 @@ +name: AI Moderator +on: + issues: + types: [opened] + issue_comment: + types: [created] + pull_request_review_comment: + types: [created] + +jobs: + spam-detection: + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + models: read + contents: read + steps: + - uses: actions/checkout@v4 + - uses: github/ai-moderator@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + spam-label: 'spam' + ai-label: 'ai-generated' + minimize-detected-comments: true + enable-spam-detection: true + enable-link-spam-detection: true + enable-ai-detection: true