feat: 将代码审查工具从 gitea-flow 迁移至 spaceflow,更新技能文档中的命令示例

This commit is contained in:
Lyda
2026-01-22 17:48:52 +08:00
parent 45663fccb0
commit 24e81d9430
2 changed files with 9 additions and 4 deletions

5
.vscode/settings.json vendored Normal file
View File

@@ -0,0 +1,5 @@
{
"cSpell.words": [
"spaceflow"
]
}

View File

@@ -20,13 +20,13 @@ metadata:
### 同步最新代码规范 ### 同步最新代码规范
```bash ```bash
npx gitea-flow ai-review --sync npx spaceflow install
``` ```
### 审查一个文件 ### 审查一个文件
```bash ```bash
npx gitea-flow ai-review -b main --head develop -f $CODE_PATH -v 1 npx spaceflow review -b main --head develop -f $CODE_PATH -v 1
``` ```
- `$CODE_PATH`:需要检查的文件路径 - `$CODE_PATH`:需要检查的文件路径
@@ -37,7 +37,7 @@ npx gitea-flow ai-review -b main --head develop -f $CODE_PATH -v 1
### 审查一个Commit ### 审查一个Commit
```bash ```bash
npx gitea-flow ai-review -b main --head develop --commits $COMMIT_ID -v 1 npx spaceflow review -b main --head develop --commits $COMMIT_ID -v 1
``` ```
- `$COMMIT_ID`需要检查的Commit ID可以是多个空格隔开 - `$COMMIT_ID`需要检查的Commit ID可以是多个空格隔开
@@ -48,7 +48,7 @@ npx gitea-flow ai-review -b main --head develop --commits $COMMIT_ID -v 1
### 审查两个分支的差异代码 ### 审查两个分支的差异代码
```bash ```bash
npx gitea-flow ai-review -b main --head develop -v 1 npx spaceflow review -b main --head develop -v 1
``` ```
- `-b main`:指定基准分支 - `-b main`:指定基准分支