From 3195c377ead8c590cd501bbc260f68717b9b9c5b Mon Sep 17 00:00:00 2001 From: "qoderai[bot]" <215938697+qoderai[bot]@users.noreply.github.com> Date: Fri, 20 Mar 2026 02:36:45 +0000 Subject: [PATCH 1/2] Add .github/workflows/qoder-auto-review.yml --- .github/workflows/qoder-auto-review.yml | 28 +++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/qoder-auto-review.yml diff --git a/.github/workflows/qoder-auto-review.yml b/.github/workflows/qoder-auto-review.yml new file mode 100644 index 000000000..6b33afe35 --- /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 From 69439f80863855241283007270dd832eea8a5703 Mon Sep 17 00:00:00 2001 From: "qoderai[bot]" <215938697+qoderai[bot]@users.noreply.github.com> Date: Fri, 20 Mar 2026 02:36:47 +0000 Subject: [PATCH 2/2] Add .github/workflows/qoder-assistant.yml --- .github/workflows/qoder-assistant.yml | 61 +++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 .github/workflows/qoder-assistant.yml diff --git a/.github/workflows/qoder-assistant.yml b/.github/workflows/qoder-assistant.yml new file mode 100644 index 000000000..11d86b096 --- /dev/null +++ b/.github/workflows/qoder-assistant.yml @@ -0,0 +1,61 @@ +name: Qoder Assistant + +on: + issue_comment: + types: [created] + pull_request_review_comment: + types: [created] + +jobs: + qoder-assistant: + if: | + contains(github.event.comment.body, '@qoder') && + !endsWith(github.event.comment.user.login, '[bot]') + runs-on: ubuntu-latest + permissions: + contents: read + issues: write + pull-requests: write + id-token: write + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Build Arguments + id: build_args + run: | + ARGS="REPO: ${{ github.repository }} + REQUEST_SOURCE: ${{ github.event_name }} + THREAD_ID: ${{ github.event.comment.node_id }} + COMMENT_ID: ${{ github.event.comment.id }} + AUTHOR: ${{ github.event.comment.user.login }} + BODY: ${{ github.event.comment.body }} + URL: ${{ github.event.comment.html_url }} + IS_PR: ${{ github.event.issue.pull_request != null || github.event_name == 'pull_request_review_comment' }} + ISSUE_OR_PR_NUMBER: ${{ github.event.issue.number || github.event.pull_request.number }}" + + if [ -n "${{ github.event.comment.pull_request_review_id }}" ]; then + ARGS="$ARGS + REVIEW_ID: ${{ github.event.comment.pull_request_review_id }}" + fi + + if [ -n "${{ github.event.comment.in_reply_to_id }}" ]; then + ARGS="$ARGS + REPLY_TO_COMMENT_ID: ${{ github.event.comment.in_reply_to_id }}" + fi + + echo "args<> $GITHUB_OUTPUT + echo "$ARGS" >> $GITHUB_OUTPUT + echo "EOF" >> $GITHUB_OUTPUT + + - name: Run Qoder Assistant + uses: QoderAI/qoder-action@v0 + with: + qoder_personal_access_token: ${{ secrets.QODER_PERSONAL_ACCESS_TOKEN }} + prompt: | + /assistant + ${{ steps.build_args.outputs.args }} + OUTPUT_LANGUAGE:Chinese \ No newline at end of file