-
Notifications
You must be signed in to change notification settings - Fork 28
34 lines (31 loc) · 915 Bytes
/
Copy pathmoderator.yml
File metadata and controls
34 lines (31 loc) · 915 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: AI Moderator
on:
issues:
types: [opened]
issue_comment:
types: [created]
pull_request_review_comment:
types: [created]
jobs:
spam-detection:
if: github.actor != 'coderabbitai[bot]' && github.actor != 'Copilot' && github.actor != 'sourcery-ai[bot]'
runs-on: ubuntu-slim
permissions:
issues: write
pull-requests: write
models: read
contents: read
steps:
- name: Checkout your repository using git
uses: actions/checkout@v6
- name: print actor for debug purposes
run: 'echo "Actor: ${{ github.actor }}"'
- uses: github/ai-moderator@v1
with:
token: ${{ secrets.BOT_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