diff --git a/.github/workflows/full-scan.yml b/.github/workflows/full-scan.yml new file mode 100644 index 0000000..bc84dc7 --- /dev/null +++ b/.github/workflows/full-scan.yml @@ -0,0 +1,22 @@ +name: AI Full Scan + +on: + workflow_dispatch: + +permissions: + issues: write + contents: read + +jobs: + full-scan: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: slatinwine/newma-review-action@v0.1.0 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + ai-api-key: ${{ secrets.ZHIPU_API_KEY }} + ai-model: glm-4.7-flash + mode: full + language: zh + max-files: '20' diff --git a/.github/workflows/review.yml b/.github/workflows/review.yml new file mode 100644 index 0000000..04de3ee --- /dev/null +++ b/.github/workflows/review.yml @@ -0,0 +1,21 @@ +name: AI Code Review + +on: + pull_request: + types: [opened, synchronize] + +permissions: + pull-requests: write + contents: read + +jobs: + review: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: slatinwine/newma-review-action@v0.1.0 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + ai-api-key: ${{ secrets.ZHIPU_API_KEY }} + ai-model: glm-4.7-flash + language: zh