mirror of
https://github.com/tenrok/axios.git
synced 2026-06-17 19:21:29 +03:00
34 lines
869 B
YAML
34 lines
869 B
YAML
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:
|
|
- name: Checkout repo
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Run AI Moderator
|
|
- uses: github/ai-moderator@81159c370785e295c97461ade67d7c33576e9319 # v1.1.4
|
|
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
|