提交 3045090e 编写于 作者: Miykael_xxm's avatar Miykael_xxm 🚴

update

上级 1f0d0f39
......@@ -18,8 +18,6 @@
- [学习仓库](course/edit/template.md)
- [支持事件](course/events.md)
- [支持动作](course/actions.md)
- [close-issue](course/actions/close-issue.md)
- [open-issue](course/actions/open-issue.md)
- [添加课程](course/create.md)
- [测试课程](course/test.md)
- [发布课程](course/publish.md)
......
# 支持动作
目前 Learning Lab 支持的动作包括:
- `open_issue /create_issue`
- `open_merge_request / merge_request.create`
- `close_merge_request / merge_request.close`
- `reply / issue_comment.created / note / choice`
- close_issue
- open_issue(create_issue)
- open_merge_request(merge_request.create)
- close_merge_request(merge_request.close)
- create_branch
- delete_branch
- reply(issue_comment.created,note,choice)
## open_issue
## open_issue /create_issue
使用`open_issue`动作来创建一个新issue,也可使用此动作的别名`create_issue`来创建
......@@ -42,9 +39,9 @@ step6:
| 参数 | 类型 | 描述 | 默认 | 是否为必要参数 |
| --- | --- | --- | --- | --- |
| title | String | 新建issue的标题 | | |
| with | String | 新建issue的描述 | | |
| store | object | 此次动作要存储的变量 | | |
| title | String | 新建issue的标题 | | |
| with | String | 新建issue的描述 | | |
| store | object | 此次动作要存储的变量 | | |
### 创建issue后返回result的格式
......@@ -61,7 +58,7 @@ step6:
```
## open_merge_request
## open_merge_request / merge_request.create
使用`open_merge_request`动作来创建一个新merge_request,也可使用此动作的别名`merge_request.create`来创建
......@@ -90,7 +87,7 @@ step9:
| 参数 | 类型 | 描述 | 默认 | 是否为必要参数 |
| --- | --- | --- | --- | --- |
| with | String | merge_request的source分支和target分支,中间用逗号分隔 | | |
| with | String | merge_request的source分支和target分支,中间用逗号分隔 | | |
### 创建open_merge_request后返回result的格式
......@@ -107,7 +104,7 @@ step9:
```
## close_merge_request
## close_merge_request / merge_request.close
使用`close_merge_request`动作来关闭一个merge_request,也可使用此动作的别名`merge_request.close`来创建
......@@ -134,10 +131,10 @@ step9:
| 参数 | 类型 | 描述 | 默认 | 是否为必要参数 |
| --- | --- | --- | --- | --- |
| with | String | 存储merge_request链接的变量名,用`{{}}`包含 | | |
| with | String | 存储merge_request链接的变量名,用`{{}}`包含 | | |
## reply
## reply / issue_comment.created / note / choice
使用`reply`来当前issue或merge_request中创建一条新的评论,也可使用别名`issue_comment.created`, `note`, `choice`
......@@ -163,5 +160,4 @@ step1:
| 参数 | 类型 | 描述 | 默认 | 是否为必要参数 |
| --- | --- | --- | --- | --- |
| with | String | 评论内容,可以是文件名,也可以是内容 | | 是 |
| with | String | 评论内容,可以是文件名,也可以是内容 | | ✓ |
\ No newline at end of file
# Close-issue
关闭 Issue
\ No newline at end of file
# Open Issue
开启 Issue
\ No newline at end of file
......@@ -44,7 +44,7 @@ step1:
| 参数 | 类型 | 描述 | 默认 | 是否为必要参数 |
| --- | --- | --- | --- | --- |
| with | String | 监听用户推送到的分支 | | |
| with | String | 监听用户推送到的分支 | | |
## note
......@@ -109,10 +109,10 @@ step1:
| 参数 | 类型 | 描述 | 默认 | 是否为必要参数 |
| --- | --- | --- | --- | --- |
| with | String | 用户回复的内容 | | |
| left | String | 正则表达式 | | |
| operator | String | 操作符,这里使用正则匹配,应该为regexp | | |
| right | String | 监听到符合条件的对象的属性,object_attributes为对象的所有属性,这里用到的属性为note | | |
| with | String | 用户回复的内容 | | |
| left | String | 正则表达式 | | |
| operator | String | 操作符,这里使用正则匹配,应该为regexp | | |
| right | String | 监听到符合条件的对象的属性,object_attributes为对象的所有属性,这里用到的属性为note | | |
## issue
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册