其他仓库只需要添加一个 workflow,就可以在 PR 触发时调用 Prysm 审查并回写评论。
name: Prysm PR Review
on:
pull_request:
types: [opened, synchronize, reopened]
permissions:
contents: read
pull-requests: read
issues: write
jobs:
review:
uses: Remohdg/PRysm-hdg/.github/workflows/prysm-review-reusable.yml@main
secrets:
LLM_API_KEY: ${{ secrets.LLM_API_KEY }}目标仓库需要在 Settings -> Secrets and variables -> Actions 中配置:
LLM_API_KEY
默认模型配置为千问兼容接口:
LLM_API_BASE_URL=https://dashscope.aliyuncs.com/compatible-mode/v1
LLM_MODEL=qwen-plus
如需覆盖模型配置,可以在调用 workflow 时传入:
with:
llm-api-base-url: https://dashscope.aliyuncs.com/compatible-mode/v1
llm-model: qwen-plusWorkflow smoke test for PR review comment writeback.
Optimization defaults smoke test.
Test2 branch smoke test.
Test2 follow-up smoke test.