docs: update docs

This commit is contained in:
wuxh
2023-01-12 22:46:36 +08:00
parent 8f847c01c2
commit b08e8f300e
4 changed files with 90 additions and 0 deletions

View File

@@ -250,6 +250,7 @@
- [`unlock-issue`](#unlock-issue)
- [`update-comment`](#update-comment)
- [`update-issue`](#update-issue)
- [`toggle-labels`](#toggle-labels)
- 🌟 进 阶
- [`check-inactive`](#check-inactive)
- [`check-issue`](#check-issue)
@@ -750,6 +751,29 @@ jobs:
⏫ [返回列表](#列-表)
#### `toggle-labels`
切换 issue 的 labels。
```yml
- name: Toggle labels
uses: actions-cool/issues-helper@v3
with:
actions: 'toggle-labels'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
labels: 'xx'
```
| 参数 | 描述 | 类型 | 必填 |
| -- | -- | -- | -- |
| actions | 操作类型 | string | ✔ |
| token | [token 说明](/zh-CN/guide/ref#-token-说明) | string | ✖ |
| issue-number | 指定的 issue当不传时会从触发事件中获取 | number | ✖ |
| labels | 切换 labels。如果 label 已存在则删除,不存在则添加 | string | ✔ |
⏫ [返回列表](#列-表)
### 🌟 进 阶
进阶用法不建议 actions 多个一次同时使用。