From f02e3a7ae0ed021271973a1bd90e0315af727a02 Mon Sep 17 00:00:00 2001 From: Salman Chishti Date: Mon, 3 Aug 2026 13:10:36 +0100 Subject: [PATCH 1/2] Update checkout action version from v4 to v7 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }} From 10daf0c78d29dcae45d353d53275ca8878f04c0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D8=AC=D9=88=D8=AC=D9=88=20=D9=88=D8=AF=20=D8=AC=D8=A8?= =?UTF-8?q?=D9=84=20=D8=A7=D9=88=D9=84=D9=8A=D8=A7=D8=A1?= <187405787+Mojahedabdo@users.noreply.github.com> Date: Mon, 3 Aug 2026 23:02:02 +0400 Subject: [PATCH 2/2] AI Moderator workflow - name: AI Issue and Comment Moderator uses: github/ai-moderator@v1.1.4 --- .../ai-moderator@v1.1.4 | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/- name: AI Issue and Comment Moderator uses: github/ai-moderator@v1.1.4 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