From 2012c00a2569d69cc8f1225b8629917b18f13e51 Mon Sep 17 00:00:00 2001 From: lijianyi Date: Sun, 19 Apr 2026 10:54:21 +0800 Subject: [PATCH 1/2] ci: add newma AI code review workflow --- .github/workflows/review.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/review.yml 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 From e6a9512d5638d37ab762f3a7d345d53b799765ef Mon Sep 17 00:00:00 2001 From: lijianyi Date: Sun, 19 Apr 2026 12:46:32 +0800 Subject: [PATCH 2/2] ci: add newma full scan workflow --- .github/workflows/full-scan.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/full-scan.yml 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'