Skip to content

Commit

Permalink
refactor(main): using v2.0.0 (#11)
Browse files Browse the repository at this point in the history
Signed-off-by: cuisongliu <[email protected]>
  • Loading branch information
cuisongliu authored Aug 27, 2023
1 parent dd72495 commit a33483f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
steps:
- name: Checkout the latest code
uses: actions/checkout@v3
- name: Gh Rebot for Sealos
uses: labring/robot@v0.0.6
- name: Rebot for Sealos
uses: labring/robot@v2.0.0
with:
version: v0.0.6
version: v2.0.0
env:
SEALOS_TYPE: "/comment"
GH_TOKEN: "${{ secrets.GH_PAT }}"
7 changes: 1 addition & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,16 +106,14 @@ message:
- name: Gh Rebot for Sealos
uses: labring/[email protected]
with:
version: v0.0.6-rc6
version: v2.0.0
env:
SEALOS_TYPE: "/comment"
GH_TOKEN: "${{ secrets.GH_PAT }}"
```
**版本支持**:

- [x] 支持release
> 目标分支为`release-v1.2`,如果没有则默认为`main`分支,该功能v0.0.7-rc1支持
`SEALOS_TYPE: "/comment"` # 评论触发
example:
```markdown
Expand All @@ -124,16 +122,13 @@ message:
```

- [x] 支持文本替换回复
> 该功能v0.0.8-rc2 支持 (升级后新增了,SEALOS_COMMENT、SEALOS_ISREPLY)
- `SEALOS_TYPE: "issue_comment"` # PR文本替换回复
- `SEALOS_FILENAME: "README.md"` # PR文本替换回复文件位置
- `SEALOS_COMMENT: "/xxxx"` # comment的内容
- `SEALOS_REPLACE_TAG: "TAG"` # 寻找标记,根据这个标记进行替换
- `SEALOS_ISREPLY: "true"` # 是否回复,根据当前的comment的内容追加

- [x] issue自动创建
> 该功能v0.0.8-rc1支持

入参:

- `SEALOS_TYPE: "issue_renew"` # issue自动创建,支持回复comment
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ inputs:
version:
description: 'version of robot'
required: true
default: 'v1.0.0'
default: 'v2.0.0'
runs:
using: "composite"
steps:
Expand Down

0 comments on commit a33483f

Please sign in to comment.