Skip to content

Commit dabc320

Browse files
authored
Merge branch 'main' into dev
2 parents 7e9f0aa + e3ea99e commit dabc320

File tree

10 files changed

+12
-102
lines changed

10 files changed

+12
-102
lines changed

.gitignore

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1-
/logs/
2-
logs
1+
/logs/*
2+
!logs/.gitkeep
33
app/mrmax.py
4-
db
4+
db/*
5+
!db/.gitkeep
56
/venv/
7+
8+
/config/config_local.py
9+
10+
.idea/

.idea/.gitignore

Lines changed: 0 additions & 8 deletions
This file was deleted.

.idea/Code-Review-GPT-Gitlab.iml

Lines changed: 0 additions & 23 deletions
This file was deleted.

.idea/inspectionProfiles/Project_Default.xml

Lines changed: 0 additions & 41 deletions
This file was deleted.

.idea/inspectionProfiles/profiles_settings.xml

Lines changed: 0 additions & 6 deletions
This file was deleted.

.idea/misc.xml

Lines changed: 0 additions & 4 deletions
This file was deleted.

.idea/modules.xml

Lines changed: 0 additions & 8 deletions
This file was deleted.

.idea/vcs.xml

Lines changed: 0 additions & 6 deletions
This file was deleted.

app.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
# router group
1111
app.register_blueprint(git, url_prefix='/git')
1212

13+
1314
@app.errorhandler(400)
1415
@app.errorhandler(404)
1516
def handle_error(error):
@@ -23,4 +24,4 @@ def handle_error(error):
2324
log.info('Starting args check...')
2425
check_config()
2526
log.info('Starting the app...')
26-
app.run(debug=True, host="0.0.0.0", port=80,use_reloader=False)
27+
app.run(debug=True, host="0.0.0.0", port=80, use_reloader=False)

config/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
# "provider": "ollama",
3030
# }
3131

32-
# 2. 提示词
32+
# Prompt
3333
gpt_message = """
3434
你是一位资深编程专家,gitlab的分支代码变更将以git diff 字符串的形式提供,请你帮忙review本段代码。然后你review内容的返回内容必须严格遵守下面的格式,包括标题内容。模板中的变量内容解释:变量5是代码中的优点儿 变量1是给review打分,分数区间为0~100分。 变量2 是code review发现的问题点。 变量3是具体的修改建议。变量4是你给出的修改后的代码。 必须要求:1. 以精炼的语言、严厉的语气指出存在的问题。2. 你的反馈内容必须使用严谨的markdown格式 3. 不要携带变量内容解释信息。4. 有清晰的标题结构。有清晰的标题结构。有清晰的标题结构。
3535
返回格式严格如下:
@@ -53,7 +53,7 @@
5353
```
5454
"""
5555

56-
# -------------Gitlab info------------------
56+
# ------------------Gitlab info--------------------------
5757
# Gitlab url
5858
gitlab_server_url = "https://gitlab.com"
5959

0 commit comments

Comments
 (0)