Skip to content

The PR description/example shows structural diffs including a per-declaration unified diff hunk (base/head/@@) for modified declarations, but the current implementation only outputs summary lines like function_declaration X: modified without any intra-declaration diff. Either update the implementation to include the intended per-declaration diff output (or at least the changed declaration text), or adjust the PR description/docs/tests so the advertised output matches actual behavior. #1999

The PR description/example shows structural diffs including a per-declaration unified diff hunk (base/head/@@) for modified declarations, but the current implementation only outputs summary lines like function_declaration X: modified without any intra-declaration diff. Either update the implementation to include the intended per-declaration diff output (or at least the changed declaration text), or adjust the PR description/docs/tests so the advertised output matches actual behavior.

The PR description/example shows structural diffs including a per-declaration unified diff hunk (base/head/@@) for modified declarations, but the current implementation only outputs summary lines like function_declaration X: modified without any intra-declaration diff. Either update the implementation to include the intended per-declaration diff output (or at least the changed declaration text), or adjust the PR description/docs/tests so the advertised output matches actual behavior. #1999

Workflow file for this run

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@v6
- 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