We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3fcf6ec commit 2fc7ba1Copy full SHA for 2fc7ba1
1 file changed
.github/workflows/spam-detect.yml
@@ -0,0 +1,30 @@
1
+name: AI Moderator
2
+on:
3
+ issues:
4
+ types: [opened]
5
+ issue_comment:
6
+ types: [created]
7
+ pull_request_review_comment:
8
9
+
10
+jobs:
11
+ spam-detection:
12
+ runs-on: ubuntu-latest
13
+ permissions:
14
+ issues: write
15
+ pull-requests: write
16
+ models: read
17
+ contents: read
18
+ steps:
19
+ - uses: actions/checkout@v4
20
+ - uses: github/ai-moderator@v1
21
+ with:
22
+ token: ${{ secrets.GITHUB_TOKEN }}
23
+ spam-label: 'spam'
24
+ ai-label: 'ai-generated'
25
+ minimize-detected-comments: false
26
+ # Built-in prompt configuration (all enabled by default)
27
+ enable-spam-detection: true
28
+ enable-link-spam-detection: true
29
+ enable-ai-detection: true
30
+ # custom-prompt-path: '.github/prompts/my-custom.prompt.yml' # Optional
0 commit comments