-
Notifications
You must be signed in to change notification settings - Fork 378
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* limit_sync_group: fix the issue that s.Add blocked when added-items much than maxSize. The behaviour should be same as sync.WaitGroup: you can add all items just once at first. * optimize prompt and review result * replace function-call by normal chat completion * remove useless code Co-authored-by: sfwn <[email protected]>
- Loading branch information
Showing
15 changed files
with
373 additions
and
180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,16 @@ | ||
zh: | ||
mr.note.comment.cannot.be.empty: 评论不能为空 | ||
template.mr.ai.cr.tip.reach.max.limit: 这里仅展示前 %d 个文件的审查结果。对于其他未审查到的文件,请移至 "**变更**" 页里,手动点击 "**AI 审查**" 按钮,或者手动选择代码片段开启 "**AI 对话**"。 | ||
mr.ai.cr.title: AI 代码审查 | ||
file: 文件 | ||
snippet: 代码片段 | ||
mr.ai.cr.no.suggestion: 你的代码变更看起来不错,暂无审查建议。 | ||
template.mr.ai.cr.file.content.max.limit: 文件内容超长,本次审查至第 %d 行。对于其他未审查到的内容,请在 "**变更**" 页里手动选择代码片段开启 "**AI 对话**"。 | ||
en: | ||
mr.note.comment.cannot.be.empty: Comment cannot be empty | ||
template.mr.ai.cr.tip.reach.max.limit: Only the first %d files are displayed here. For other files that have not been reviewed, please manually click the "**AI Code Review**" button in the "**Changes**" tab, or manually select the code snippet to start the "**AI Conversation**". | ||
mr.ai.cr.title: AI Code Review | ||
file: File | ||
snippet: Code Snippet | ||
mr.ai.cr.no.suggestion: Your code changes look good, no review suggestions for now. | ||
template.mr.ai.cr.file.content.max.limit: The file content is too long, only the first %d lines are reviewed. For other content that has not been reviewed, please manually select the code snippet in "Changes" tab to start the "AI Conversation". |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
internal/tools/gittar/ai/cr/impl/cr_mr_code_snippet/prompt.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
messages: | ||
- role: system | ||
content: Please reply in {{.UserLang}}. | ||
|
||
- role: system | ||
content: | | ||
Please give a review suggestions for the selected code, use markdown title for each suggestion. Code examples can be provided when necessary. | ||
The first-level title is: AI Code Review. | ||
Code: | ||
{{.SelectedCode}} | ||
- role: system | ||
content: Please reply in Chinese. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.