yunxiao-code 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/yx-code-darwin-amd64
CHANGED
|
Binary file
|
package/bin/yx-code-darwin-arm64
CHANGED
|
Binary file
|
package/bin/yx-code-linux-amd64
CHANGED
|
Binary file
|
|
@@ -5,7 +5,7 @@ description: 创建云效合并请求(Merge Request)
|
|
|
5
5
|
|
|
6
6
|
创建合并请求到目标分支。
|
|
7
7
|
|
|
8
|
-
**重要:默认目标分支为 develop
|
|
8
|
+
**重要:默认目标分支为 develop,执行前需用户确认。**
|
|
9
9
|
|
|
10
10
|
## 前置条件
|
|
11
11
|
|
|
@@ -16,22 +16,29 @@ description: 创建云效合并请求(Merge Request)
|
|
|
16
16
|
|
|
17
17
|
## 步骤
|
|
18
18
|
|
|
19
|
-
1.
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
-
|
|
19
|
+
1. **获取分支状态和提交信息**:
|
|
20
|
+
```bash
|
|
21
|
+
git branch --show-current && git log --oneline -3
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
如果分支未推送到远程,先推送:
|
|
25
|
+
```bash
|
|
26
|
+
git push -u origin HEAD
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
2. **确定 MR 信息**:
|
|
30
|
+
- 标题:优先使用用户提供的标题;如果用户未提供,从最近的 commit message 自动推导
|
|
31
31
|
- 目标分支:**默认为 develop**,除非用户明确指定其他分支
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
|
|
33
|
+
3. **询问用户确认**:
|
|
34
|
+
使用 AskUserQuestion 询问用户:
|
|
35
|
+
- 问题:"即将创建合并请求到分支 `<target_branch>`,是否继续?"
|
|
36
|
+
- 选项:Yes / No
|
|
37
|
+
|
|
38
|
+
4. **用户选择 Yes 后创建 MR**:
|
|
39
|
+
```bash
|
|
40
|
+
yx-code mr -m "<title>" [-d "<description>"] [-t "<target>"]
|
|
41
|
+
```
|
|
35
42
|
|
|
36
43
|
## 命令参数
|
|
37
44
|
|
|
@@ -5,14 +5,26 @@ description: 推送代码到云效远程仓库
|
|
|
5
5
|
|
|
6
6
|
推送代码到远程仓库。
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
**重要:执行前需用户确认。**
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
## 步骤
|
|
11
|
+
|
|
12
|
+
1. **获取当前分支信息**:
|
|
13
|
+
```bash
|
|
14
|
+
git branch --show-current
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
2. **询问用户确认**:
|
|
18
|
+
使用 AskUserQuestion 询问用户:
|
|
19
|
+
- 问题:"即将推送代码到远程仓库,是否继续?"
|
|
20
|
+
- 选项:Yes / No
|
|
21
|
+
|
|
22
|
+
3. **用户选择 Yes 后执行推送**:
|
|
11
23
|
```bash
|
|
12
|
-
|
|
24
|
+
yx-code push
|
|
13
25
|
```
|
|
14
26
|
|
|
15
|
-
|
|
27
|
+
4. **如果推送失败且提示无上游分支**,自动设置上游并重试:
|
|
16
28
|
```bash
|
|
17
29
|
yx-code push -u origin HEAD
|
|
18
30
|
```
|
|
@@ -119,8 +119,6 @@ yx-code diff --target <target> --source <source>
|
|
|
119
119
|
|
|
120
120
|
<文件链接>
|
|
121
121
|
|
|
122
|
-
🤖 Generated with [Claude Code](https://claude.ai/code)
|
|
123
|
-
|
|
124
122
|
---
|
|
125
123
|
|
|
126
124
|
如果没有发现问题:
|
|
@@ -130,8 +128,6 @@ yx-code diff --target <target> --source <source>
|
|
|
130
128
|
|
|
131
129
|
未发现问题。已检查 Bug 和 CLAUDE.md 合规性。
|
|
132
130
|
|
|
133
|
-
🤖 Generated with [Claude Code](https://claude.ai/code)
|
|
134
|
-
|
|
135
131
|
---
|
|
136
132
|
|
|
137
133
|
### 链接格式要求
|