PR-Agent提供三种本地安装方式,适合不同使用场景:
- The Docker Way: Implementation
docker pull qodo-ai/pr-agent
获取官方镜像,适合容器化部署环境 - pip安装: By
pip install pr-agent
直接安装Python包,适合Python开发环境 - Source Code Installation:克隆仓库后运行
python setup.py install
,适合需要自定义修改的高级用户
安装完成后建议进行以下配置:
- In the project root directory, create the
.pr_agent.toml
configuration file - 根据需要设置分析深度、反馈格式等参数
- 对于GitHub项目,还需在仓库设置中添加Qodo Merge应用授权
三种安装方式中,Docker方式最为推荐,能避免环境依赖问题,实现一键部署。
This answer comes from the articlePR Agent: automated pull request analysis toolThe