Skip to content

Commit 831b878

Browse files
committed
chore(pro)
1 parent 9ff962f commit 831b878

8 files changed

Lines changed: 23 additions & 12 deletions

File tree

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,13 @@ Through the above introduction and Demo demonstration, you must be curious about
5151
## Quick Start
5252

5353
1. Run with source code
54-
```
55-
1. Clone the latest code or select a released version, Python3.7 or later is ready.
54+
1. Download the [released version](https://github.com/kuafuai/DevOpsGPT/releases), or clone the latest code(instability), Ensure SQLite and Python3.7 or later is ready.
5655
2. Generate the configuration file: Copy `env.yaml.tpl` and rename it to `env.yaml`.
5756
3. Modify the configuration file: Edit `env.yaml` and add the necessary information such as GPT Token (refer to [documentation link](docs/DOCUMENT.md) for detailed instructions).
5857
4. Run the service: Execute `sh run.sh` on Linux or Mac, or double-click `run.bat` on Windows.
5958
5. Access the service: Access the service through a browser (check the startup log for the access address, default is http://127.0.0.1:8080).
6059
6. Complete requirement development: Follow the instructions on the page to complete requirement development, and view the generated code in the `./workspace` directory.
61-
```
60+
6261
2. Run with Docker
6362
```shell
6463
1. Create a directory: mkdir -p workspace

backend/app/controllers/requirement.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,9 @@ def get_all():
5656
_ = getI18n("controllers")
5757
tenantID = session['tenant_id']
5858

59-
try:
60-
requirements = Requirement.get_all_requirements(tenantID)
59+
requirements = Requirement.get_all_requirements(tenantID)
6160

62-
return {'requirements': requirements}
63-
except Exception as e:
64-
raise Exception(_("Failed to get applications."))
61+
return {'requirements': requirements}
6562

6663
@bp.route('/get_one', methods=['GET'])
6764
@json_response
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
class RequirementMemory():
2+
def get_all_requirement_memories(x=None, y=1):
3+
pass
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
def triggerPipelinePro(requirementID, branchName, re):
2+
pass
3+
4+
def triggerCDPro(requirementID, image, re):
5+
pass
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
from app.pkgs.devops.local_tools_interface import LocalToolsInterface
2+
3+
class LocalToolsPro(LocalToolsInterface):
4+
def compileCheck(self, requirementID, ws_path, repo_path):
5+
pass
6+
7+
def lintCheck(self, requirementID, ws_path, repo_path, file_path):
8+
pass

backend/app/pkgs/prompt/code_basic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def aiFixError(self, requirementID, solution, code, filePath, type):
8181

8282

8383
def aiCheckCode(self, requirementID, fileTask, code, filePath):
84-
goodCodeRe, success = self.aiReviewCode(requirementID, fileTask, code)
84+
goodCodeRe, success = self.aiReviewCode(requirementID, fileTask, code, filePath)
8585

8686
jsonData = {"reasoning": goodCodeRe, "code": code}
8787

db/database.db

0 Bytes
Binary file not shown.

docs/README_CN.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,13 @@
6363
## 快速开始
6464

6565
1. 源码运行
66-
```
67-
1. 克隆最新代码或选择已发布的版本,准备好 Python3.7 或以上版本。
66+
1. 选择[已发布的版本](https://github.com/kuafuai/DevOpsGPT/releases)或者克隆最新代码(不稳定),准备好 SQLite 和 Python3.7 或以上版本。
6867
2. 生成配置文件:复制 `env.yaml.tpl` 并重命名为 `env.yaml`
6968
3. 修改配置文件:编辑 `env.yaml`,添加GPT Token等必要信息。
7069
4. 运行服务:在 Linux 或 Mac 上执行 `sh run.sh`,在 Windows 上双击运行 `run.bat`
7170
5. 访问服务:通过浏览器访问服务(启动日志中提供的访问地址,默认为 http://127.0.0.1:8080)。
7271
6. 完成需求开发:按照页面引导完成需求开发,在 `./workspace` 目录下查看生成的代码。
73-
```
72+
7473
2. Docker运行
7574
```shell
7675
1. 创建一个目录:mkdir -p workspace

0 commit comments

Comments
 (0)