Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/qoder-assistant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,4 @@ jobs:
prompt: |
/assistant
${{ steps.build_args.outputs.args }}
OUTPUT_LANGUAGE:Chinese
28 changes: 28 additions & 0 deletions .github/workflows/qoder-auto-review.yml
Original file line number Diff line number Diff line change
@@ -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 }}
Comment on lines +21 to +24
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The auto review workflow is triggered by the pull_request event while also depending on qoder_personal_access_token from secrets.QODER_PERSONAL_ACCESS_TOKEN. For pull requests opened from forks, GitHub does not expose repository secrets to pull_request workflows, so this step is likely to fail or behave unexpectedly for external contributors. If you want Qoder reviews to be reliable for forked PRs, consider either skipping this job when secrets are unavailable (for example by checking github.event.pull_request.head.repo.fork or the presence of the secret) or moving the secret-dependent logic to a workflow pattern that supports secrets for forks (such as pull_request_target with appropriate hardening).


🤖 Generated by QoderFix in Qoder

prompt: |
/review-pr
REPO:${{ github.repository }} PR_NUMBER:${{ github.event.pull_request.number }}
OUTPUT_LANGUAGE:Chinese