Skip to content

Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.

ci: add automated PR review workflow using Doubao model (#434)

Qin Haojiea078fba6595f
diff --git a/.github/workflows/pr-review.yml b/.github/workflows/pr-review.yml
new file mode 100644
index 000000000..28a3e2d64
--- /dev/null
+++ b/.github/workflows/pr-review.yml
@@ -0,0 +1,27 @@
+name: PR Review (Doubao)
+
+on:
+ pull_request:
+ types: [opened, synchronize, reopened, ready_for_review]
+ issue_comment:
+
+jobs:
+ pr_review:
+ if: ${{ github.event.sender.type != 'Bot' }}
+ runs-on: ubuntu-latest
+ permissions:
+ issues: write
+ pull-requests: write
+ contents: write
+ steps:
+ - name: PR Agent
+ uses: qodo-ai/pr-agent@main
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ OPENAI.KEY: ${{ secrets.DOUBAO_API_KEY }}
+ OPENAI.API_BASE: "https://ark.cn-beijing.volces.com/api/v3"
+ config.model: "openai/doubao-seed-2-0-code-preview-260215"
+ config.custom_model_max_tokens: 131072
+ github_action_config.auto_review: "true"
+ github_action_config.auto_describe: "false"
+ github_action_config.auto_improve: "true"