diff --git a/.github/workflows/qoder-assistant.yml b/.github/workflows/qoder-assistant.yml index 59e7632..11d86b0 100644 --- a/.github/workflows/qoder-assistant.yml +++ b/.github/workflows/qoder-assistant.yml @@ -58,3 +58,4 @@ jobs: prompt: | /assistant ${{ steps.build_args.outputs.args }} + OUTPUT_LANGUAGE:Chinese \ No newline at end of file diff --git a/.github/workflows/qoder-auto-review.yml b/.github/workflows/qoder-auto-review.yml new file mode 100644 index 0000000..6b33afe --- /dev/null +++ b/.github/workflows/qoder-auto-review.yml @@ -0,0 +1,28 @@ +name: Qoder Auto Code Review + +on: + pull_request: + types: [opened, synchronize, reopened] + +jobs: + qoder-review: + runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: write + id-token: write + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Run Qoder Code Review + uses: QoderAI/qoder-action@v0 + with: + qoder_personal_access_token: ${{ secrets.QODER_PERSONAL_ACCESS_TOKEN }} + prompt: | + /review-pr + REPO:${{ github.repository }} PR_NUMBER:${{ github.event.pull_request.number }} + OUTPUT_LANGUAGE:Chinese \ No newline at end of file