Skip to content

Commit 2e6a7d3

Browse files
authored
fix: 修复删除插件流程无法正常运行的问题 (#358)
* fix: 修复删除插件流程无法正常运行的问题 * docs: 更新日志 * docs: 添加使用方法
1 parent 76e570a commit 2e6a7d3

File tree

3 files changed

+56
-0
lines changed

3 files changed

+56
-0
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/lang/zh-CN/
77

88
## [Unreleased]
99

10+
### Fixed
11+
12+
- 修改 remove 插件的提交信息前缀
13+
- 修复删除插件流程无法正常运行的问题
14+
1015
## [4.2.5] - 2025-01-11
1116

1217
### Fixed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ _✨ NoneBot 工作流管理机器人 ✨_
3838

3939
- [自动处理商店发布议题和测试插件](examples/noneflow.yml)
4040
- [定时测试商店内插件](examples/store-test.yml)
41+
- [自动处理商店信息修改/删除议题](examples/noneflow-registry.yml)
42+
- [自动合并插件配置修改](examples/noneflow-results.yml)
4143

4244
## 测试
4345

examples/noneflow-registry.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: NoneFlow
2+
3+
on:
4+
issues:
5+
types: [opened, reopened, edited]
6+
issue_comment:
7+
types: [created]
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.event.issue.number || github.run_id }}
11+
cancel-in-progress: false
12+
13+
jobs:
14+
noneflow:
15+
runs-on: ubuntu-latest
16+
name: noneflow
17+
# do not run on not related issues
18+
if: |
19+
contains(github.event.issue.labels.*.name, 'Plugin') ||
20+
contains(github.event.issue.labels.*.name, 'Adapter') ||
21+
contains(github.event.issue.labels.*.name, 'Bot')
22+
steps:
23+
- name: Generate token
24+
id: generate-token
25+
uses: tibdex/github-app-token@v2
26+
with:
27+
app_id: ${{ secrets.APP_ID }}
28+
private_key: ${{ secrets.APP_KEY }}
29+
30+
- name: Checkout Code
31+
uses: actions/checkout@v4
32+
with:
33+
token: ${{ steps.generate-token.outputs.token }}
34+
repository: nonebot/nonebot2
35+
36+
- name: NoneFlow
37+
uses: docker://ghcr.io/nonebot/noneflow:latest
38+
with:
39+
config: >
40+
{
41+
"base": "master",
42+
"plugin_path": "assets/plugins.json5",
43+
"bot_path": "assets/bots.json5",
44+
"adapter_path": "assets/adapters.json5",
45+
"registry_repository": "nonebot/registry"
46+
}
47+
env:
48+
APP_ID: ${{ secrets.APP_ID }}
49+
PRIVATE_KEY: ${{ secrets.APP_KEY }}

0 commit comments

Comments
 (0)