File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 branches : [ main, dev ]
66 pull_request :
77 branches : [ main, dev ]
8+ issues :
9+ types : [opened, edited]
10+ issue_comment :
11+ types : [created, edited]
12+ pull_request_target :
13+ types : [opened, edited]
814
915permissions :
1016 contents : read
1117 security-events : write
18+ issues : write
19+ pull-requests : write
1220
1321jobs :
1422 test :
@@ -241,7 +249,15 @@ jobs:
241249
242250 ai-moderator :
243251 runs-on : ubuntu-latest
244- needs : [test]
252+ if : github.event_name == 'issues' || github.event_name == 'issue_comment' || github.event_name == 'pull_request_target'
245253 steps :
246254 - name : AI Issue and Comment Moderator
247- uses : github/ai-moderator@v1.1.2
255+ uses : github/ai-moderator@v1.1.2
256+ with :
257+ token : ${{ secrets.GITHUB_TOKEN }}
258+ spam-label : spam
259+ ai-label : ai-generated
260+ minimize-detected-comments : true
261+ enable-spam-detection : true
262+ enable-link-spam-detection : true
263+ enable-ai-detection : true
You can’t perform that action at this time.
0 commit comments