Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions automation/ai-moderator.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# This workflow scans new issues and comments for spam, link spam, and
# AI-generated content using the GitHub Models inference API, then labels
# (and optionally minimizes) anything it detects.
#
# For more information, see:
# https://github.com/github/ai-moderator
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:
- uses: actions/checkout@v7
- uses: github/ai-moderator@v1
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
6 changes: 6 additions & 0 deletions automation/properties/ai-moderator.properties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"name": "AI Moderator",
"description": "Scans new issues and comments for spam, link spam, and AI-generated content",
"iconName": "octicon ai-model",
"categories": ["Automation", "SDLC"]
}
Loading