Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 11, 22:15 UTC
Set read permissions as default
Matthew Holt committed
Aug 25, 2025 at 10:18 UTC
b7c022a61af213dbae527891ce3b429b4b60d1d7
1 file changed
+30
.github/workflows/ai.yml
new
+30
@@ -0,0 +1,30 @@
1
+name: AI Moderator
2
+permissions: read-all
3
+on:
4
+ issues:
5
+ types: [opened]
6
+ issue_comment:
7
+ types: [created]
8
+ pull_request_review_comment:
9
+ types: [created]
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: true
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
\ No newline at end of file