8000 Feature/#1/localization by Arcadia822 · Pull Request #7 · codedog-ai/codedog · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Feature/#1/localization #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 21, 2023
Merged

Feature/#1/localization #7

merged 3 commits into from
Jul 21, 2023

Conversation

Arcadia822
Copy link
Member

No description provided.

@Arcadia822 Arcadia822 linked an issue 8000 Jul 21, 2023 that may be closed by this pull request
@Codedog-Bot
Copy link

codedog #7 代码审查报告

powered by GPT3.5-Turbo and Codedog 0.3.0

执行记录

  • 开始时间: 2023-07-21 02:30:03
  • 审查耗时: 45秒
  • 审查文件数量: 10
  • OPENAI API TOKEN数量: 18010 (约$0.0360)

PR概要

这次pull request主要是为了增加本地化功能,修改了Chains类的__init__方法,增加了一个lang参数,用于选择不同的语言模板。同时,还添加了PR报告的模板,包括主要改动和次要改动的分类,以及执行记录和反馈建议等内容。

主要变动
1. codedog/chains.py
修改了Chains类的__init__方法,增加了一个lang参数,用于选择不同的语言模板
2. codedog/templates/grimoire_en.py
Add PR review prompt templates and change review templates
3. codedog/templates/template_en.py
添加了PR报告的模板,包括主要改动和次要改动的分类,以及执行记录和反馈建议等内容
次要变动
1. codedog/adapters/github_adapter.py
该diff改动主要是对函数handle_pull_request和review_wrapper的参数进行了修改,增加了一个callbacks参数,并对函数内部进行了一些调整。
2. codedog/report.py
Imported templates from codedog.templates module
3. codedog/review.py
该diff改动了codedog/review.py文件中的一些函数逻辑,包括初始化函数、执行函数、生成报告函数等。修改了模板的引用方式,增加了语言选择参数。改动内容较多,涉及多个函数。
4. codedog/server.py
该diff改动了codedog/server.py文件中的github函数,增加了一个lang参数,并将handle_github_event函数的调用中也加入了lang参数。
5. codedog/templates/grimoire_cn.py
Removed unused templates and instructions for text conversion
6. codedog/templates/template_cn.py
修改了代码审查报告的powered by信息
7. examples/github/github_review.py
在handle_github_event函数中添加了一个新的参数lang

PR改进建议 preview

** 目前改进建议功能仍在调试中,建议仅供参考 **

1. examples/github/github_review.py

需要修复的部分:将handle_github_event函数的第三个参数lang="en"添加到函数调用中。

@Arcadia822 Arcadia822 merged commit b8efbbc into master Jul 21, 2023
@Arcadia822 Arcadia822 deleted the feature/#1/localization branch July 22, 2023 00:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enable localization and support english
2 participants
0