Skip to content

Commit be05b3b

Browse files
committed
feat: adjust regex in prompt template
1 parent bafc92a commit be05b3b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

locales/en_US/LC_MESSAGES/messages.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ msgstr "Received AI return result: {review_result}"
427427

428428
#: biz/utils/code_reviewer.py:99
429429
msgid "总分[::]\\s*\\**(\\d+)分?"
430-
msgstr "Total [sS]core[::]\\s*\\**(\\d+)? points"
430+
msgstr "Total [sS]core[::]\\s*\\**(\\d+) points"
431431

432432
#: biz/utils/im/dingtalk.py:30
433433
msgid "未提供项目名称,且未设置默认的钉钉 Webhook URL。"

locales/en_US/prompt_templates.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ code_review_prompt:
1313
Please output the code review report in Markdown format, including the following:
1414
1. Issue Description & Optimization Suggestions (if any): List issues found in the code, briefly explain their impact, and provide optimization recommendations.
1515
2. Scoring Breakdown: Provide specific scores for each evaluation criterion.
16-
3. Total score: Format as "Total score: XX points" (example: Total score: 80 points), and ensure it can be parsed by the regular expression r"总分[::]\s*(\d+)分?".
16+
3. Total score: Format as "Total score: XX points" (example: Total score: 80 points), and ensure it can be parsed by the regular expression r"Total score[::]\s*(\d+) points".
1717
user_prompt: |-
1818
Below is the code submitted by an employee to the GitLab repository. Please conduct a strict review of any critical issues and evaluate the code quality with a brief assessment and scoring.
1919
Code changes:

0 commit comments

Comments
 (0)