diff --git a/.github/- name: AI Issue and Comment Moderator uses: github/ai-moderator@v1.1.4 b/.github/- name: AI Issue and Comment Moderator uses: github/ai-moderator@v1.1.4 new file mode 100644 index 0000000..b87a53c --- /dev/null +++ b/.github/- name: AI Issue and Comment Moderator uses: github/ai-moderator@v1.1.4 @@ -0,0 +1,30 @@ +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@v4 + - uses: github/ai-moderator@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + spam-label: 'spam' + ai-label: 'ai-generated' + minimize-detected-comments: true + # Built-in prompt configuration (all enabled by default) + enable-spam-detection: true + enable-link-spam-detection: true + enable-ai-detection: true + # custom-prompt-path: '.github/prompts/my-custom.prompt.yml' # Optional diff --git a/README.md b/README.md index d1e8897..b642c53 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ jobs: models: read contents: read steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 - uses: github/ai-moderator@v1 with: token: ${{ secrets.GITHUB_TOKEN }}