From aed823fbce23d379238184273eeb263c911670a0 Mon Sep 17 00:00:00 2001 From: svtter Date: Tue, 19 May 2026 18:29:55 +0800 Subject: [PATCH] ci: add multi-review workflow for testing Co-Authored-By: Claude Opus 4.7 --- .github/workflows/multi-review.yml | 35 ++++++++++++++++++++++++++++++ README.md | 1 + 2 files changed, 36 insertions(+) create mode 100644 .github/workflows/multi-review.yml diff --git a/.github/workflows/multi-review.yml b/.github/workflows/multi-review.yml new file mode 100644 index 0000000..2194473 --- /dev/null +++ b/.github/workflows/multi-review.yml @@ -0,0 +1,35 @@ +name: Multi-Review + +on: + pull_request: + types: [opened, synchronize, reopened, ready_for_review] + +jobs: + multi-review: + if: github.event.pull_request.draft == false && github.event.pull_request.head.repo.full_name == github.repository + runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: write + issues: write + steps: + - name: Checkout PR head + uses: actions/checkout@v6 + with: + repository: ${{ github.event.pull_request.head.repo.full_name }} + ref: ${{ github.event.pull_request.head.ref }} + + - name: Configure git identity + run: | + git config user.name "github-actions[bot]" + git config user.email "github-actions[bot]@users.noreply.github.com" + + - name: Run multi-agent review + uses: ./multi-review + with: + model: ${{ vars.MODEL_NAME }} + default-team: "quality:1,security:1" + github-token: ${{ secrets.GITHUB_TOKEN }} + zhipu-api-key: ${{ secrets.ZHIPU_API_KEY }} + deepseek-api-key: ${{ secrets.DEEPSEEK_API_KEY }} + opencode-go-api-key: ${{ secrets.OPENCODE_GO_API_KEY }} diff --git a/README.md b/README.md index 652c345..a676a02 100644 --- a/README.md +++ b/README.md @@ -263,3 +263,4 @@ The initial release-notes template lives at `docs/releases/v1.0.0.md`. - `args` is parsed as a space-delimited string, so keep complex text in environment variables like `PROMPT` - the installer is external, so cache invalidation uses `cache-key` instead of a guaranteed version pin - first version is optimized for GitHub-hosted or Linux self-hosted runners +# test multi-review