Skip to content

Commit b6da825

Browse files
committed
change: 修改项目名称
1 parent f86f1d7 commit b6da825

File tree

11 files changed

+58
-57
lines changed

11 files changed

+58
-57
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
uses: docker/metadata-action@v4
5454
id: metadata
5555
with:
56-
images: ghcr.io/nonebot/nonebot2-publish-bot
56+
images: ghcr.io/nonebot/noneflow
5757
tags: |
5858
type=semver,pattern={{version}}
5959
type=ref,event=branch

.vscode/launch.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@
1919
"GITHUB_EVENT_PATH": "${workspaceFolder}/tests/plugin-test/issue-comment.json",
2020
"GITHUB_APPS": "[{\"client_id\": 1111, \"client_secret\": 12312}]",
2121
"GITHUB_REPOSITORY": "owner/repo",
22-
"INPUT_CONFIG": "{\"base\": \"master\", \"plugin_path\": \"website/static/plugins.json\", \"bot_path\": \"website/static/bots.json\", \"adapter_path\": \"website/static/adapters.json\"}"
22+
"INPUT_CONFIG": "{\"base\": \"master\", \"plugin_path\": \"website/static/plugins.json\", \"bot_path\": \"website/static/bots.json\", \"adapter_path\": \"website/static/adapters.json\"}",
23+
"APP_ID": "123",
24+
"PRIVATE_KEY": "123123"
2325
}
2426
},
2527
{

CHANGELOG.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -162,18 +162,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/lang/zh-CN/
162162

163163
- 最初的版本
164164

165-
[unreleased]: https://github.com/nonebot/nonebot2-publish-bot/compare/v2.0.0...HEAD
166-
[2.0.0]: https://github.com/nonebot/nonebot2-publish-bot/compare/v1.2.1...v2.0.0
167-
[1.2.1]: https://github.com/nonebot/nonebot2-publish-bot/compare/v1.2.0...v1.2.1
168-
[1.2.0]: https://github.com/nonebot/nonebot2-publish-bot/compare/v1.1.2...v1.2.0
169-
[1.1.2]: https://github.com/nonebot/nonebot2-publish-bot/compare/v1.1.1...v1.1.2
170-
[1.1.1]: https://github.com/nonebot/nonebot2-publish-bot/compare/v1.1.0...v1.1.1
171-
[1.1.0]: https://github.com/nonebot/nonebot2-publish-bot/compare/v1.0.0...v1.1.0
172-
[1.0.0]: https://github.com/nonebot/nonebot2-publish-bot/compare/v0.5.2...v1.0.0
173-
[0.5.2]: https://github.com/nonebot/nonebot2-publish-bot/compare/v0.5.1...v0.5.2
174-
[0.5.1]: https://github.com/nonebot/nonebot2-publish-bot/compare/v0.5.0...v0.5.1
175-
[0.5.0]: https://github.com/nonebot/nonebot2-publish-bot/compare/v0.4.0...v0.5.0
176-
[0.4.0]: https://github.com/nonebot/nonebot2-publish-bot/compare/v0.3.0...v0.4.0
177-
[0.3.0]: https://github.com/nonebot/nonebot2-publish-bot/compare/v0.2.0...v0.3.0
178-
[0.2.0]: https://github.com/nonebot/nonebot2-publish-bot/compare/v0.1.0...v0.2.0
179-
[0.1.0]: https://github.com/nonebot/nonebot2-publish-bot/releases/tag/v0.1.0
165+
[unreleased]: https://github.com/nonebot/noneflow/compare/v2.0.0...HEAD
166+
[2.0.0]: https://github.com/nonebot/noneflow/compare/v1.2.1...v2.0.0
167+
[1.2.1]: https://github.com/nonebot/noneflow/compare/v1.2.0...v1.2.1
168+
[1.2.0]: https://github.com/nonebot/noneflow/compare/v1.1.2...v1.2.0
169+
[1.1.2]: https://github.com/nonebot/noneflow/compare/v1.1.1...v1.1.2
170+
[1.1.1]: https://github.com/nonebot/noneflow/compare/v1.1.0...v1.1.1
171+
[1.1.0]: https://github.com/nonebot/noneflow/compare/v1.0.0...v1.1.0
172+
[1.0.0]: https://github.com/nonebot/noneflow/compare/v0.5.2...v1.0.0
173+
[0.5.2]: https://github.com/nonebot/noneflow/compare/v0.5.1...v0.5.2
174+
[0.5.1]: https://github.com/nonebot/noneflow/compare/v0.5.0...v0.5.1
175+
[0.5.0]: https://github.com/nonebot/noneflow/compare/v0.4.0...v0.5.0
176+
[0.4.0]: https://github.com/nonebot/noneflow/compare/v0.3.0...v0.4.0
177+
[0.3.0]: https://github.com/nonebot/noneflow/compare/v0.2.0...v0.3.0
178+
[0.2.0]: https://github.com/nonebot/noneflow/compare/v0.1.0...v0.2.0
179+
[0.1.0]: https://github.com/nonebot/noneflow/releases/tag/v0.1.0

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# NoneBot2 Publish Bot
1+
# NoneFlow
22

3-
[![codecov](https://codecov.io/gh/nonebot/nonebot2-publish-bot/branch/main/graph/badge.svg?token=BOIBTOCWCH)](https://codecov.io/gh/nonebot/nonebot2-publish-bot)
3+
[![codecov](https://codecov.io/gh/nonebot/noneflow/branch/main/graph/badge.svg?token=BOIBTOCWCH)](https://codecov.io/gh/nonebot/noneflow)
44

55
[NoneBot2](https://github.com/nonebot/nonebot2) 插件/协议/机器人 发布机器人
66

@@ -28,7 +28,7 @@
2828
简单的示例
2929

3030
```yaml
31-
name: NoneBot2 Publish Bot
31+
name: NoneFlow
3232

3333
on:
3434
issues:
@@ -67,10 +67,10 @@ jobs:
6767
- name: Test Plugin
6868
id: plugin-test
6969
run: |
70-
curl -sSL https://github.com/nonebot/nonebot2-publish-bot/releases/latest/download/plugin_test.py | python -
71-
publish_bot:
70+
curl -sSL https://github.com/nonebot/noneflow/releases/latest/download/plugin_test.py | python -
71+
noneflow:
7272
runs-on: ubuntu-latest
73-
name: nonebot2 publish bot
73+
name: noneflow
7474
needs: plugin_test
7575
steps:
7676
- name: Generate token
@@ -85,8 +85,8 @@ jobs:
8585
with:
8686
token: ${{ steps.generate-token.outputs.token }}
8787

88-
- name: NoneBot2 Publish Bot
89-
uses: docker://ghcr.io/nonebot/nonebot2-publish-bot:latest
88+
- name: NoneFlow
89+
uses: docker://ghcr.io/nonebot/noneflow:latest
9090
with:
9191
config: >
9292
{

action.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
1-
name: 'NoneBot2 Publish Bot'
2-
description: 'Manage publish related issues in nonebot2 project'
3-
author: 'hemengyang <hmy0119@gmail.com>'
1+
name: "NoneFlow"
2+
description: "Manage publish related issues in nonebot2 project"
3+
author: "hemengyang <hmy0119@gmail.com>"
44
inputs:
5-
token:
6-
description: 'Token for the repo. Can be passed in using {{ secrets.GITHUB_TOKEN }}'
7-
required: true
85
config:
9-
description: 'JSON with settings as described in the README'
6+
description: "JSON with settings as described in the README"
107
required: true
118
runs:
12-
using: 'docker'
13-
image: 'Dockerfile'
9+
using: "docker"
10+
image: "Dockerfile"
1411
branding:
15-
icon: 'box'
16-
color: 'orange'
12+
icon: "box"
13+
color: "orange"

poetry.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
[tool.poetry]
2-
name = "nonebot2-publish-bot"
2+
name = "noneflow"
33
version = "2.0.0"
44
description = "Manage publish related issues in nonebot2 project"
55
authors = ["hemengyang <hmy0119@gmail.com>"]
66
license = "MIT"
77
readme = "README.md"
8-
homepage = "https://github.com/nonebot/nonebot2-publish-bot"
9-
repository = "https://github.com/nonebot/nonebot2-publish-bot"
8+
homepage = "https://github.com/nonebot/noneflow"
9+
repository = "https://github.com/nonebot/noneflow"
1010

1111
[tool.poetry.dependencies]
1212
python = "^3.11"

src/plugins/publish/constants.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import re
22

3-
PUBLISH_BOT_MARKER = "<!-- PUBLISH_BOT -->"
3+
NONEFLOW_MARKER = "<!-- NONEFLOW -->"
44

55
SKIP_PLUGIN_TEST_COMMENT = "/skip"
66

@@ -16,7 +16,9 @@
1616

1717
REUSE_MESSAGE = "♻️ 评论已更新至最新检查结果"
1818

19-
POWERED_BY_BOT_MESSAGE = "💪 Powered by [NoneBot2 Publish Bot](https://github.com/nonebot/nonebot2-publish-bot)"
19+
POWERED_BY_NONEFLOW_MESSAGE = (
20+
"💪 Powered by [NoneFlow](https://github.com/nonebot/noneflow)"
21+
)
2022

2123
DETAIL_MESSAGE_TEMPLATE = (
2224
"<details><summary>详情</summary><pre><code>{detail_message}</code></pre></details>"

src/plugins/publish/utils.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
COMMENT_MESSAGE_TEMPLATE,
1414
COMMENT_TITLE,
1515
COMMIT_MESSAGE_PREFIX,
16-
POWERED_BY_BOT_MESSAGE,
17-
PUBLISH_BOT_MARKER,
16+
NONEFLOW_MARKER,
17+
POWERED_BY_NONEFLOW_MESSAGE,
1818
REUSE_MESSAGE,
1919
SKIP_PLUGIN_TEST_COMMENT,
2020
TIPS_MESSAGE,
@@ -266,16 +266,16 @@ async def comment_issue(bot: Bot, repo_info: RepoInfo, issue_number: int, body:
266266
)
267267
).parsed_data
268268
reusable_comment = next(
269-
filter(lambda x: PUBLISH_BOT_MARKER in (x.body if x.body else ""), comments),
269+
filter(lambda x: NONEFLOW_MARKER in (x.body if x.body else ""), comments),
270270
None,
271271
)
272272
if reusable_comment:
273-
footer = f"{REUSE_MESSAGE}\n\n{POWERED_BY_BOT_MESSAGE}"
273+
footer = f"{REUSE_MESSAGE}\n\n{POWERED_BY_NONEFLOW_MESSAGE}"
274274
else:
275-
footer = f"{POWERED_BY_BOT_MESSAGE}"
275+
footer = f"{POWERED_BY_NONEFLOW_MESSAGE}"
276276

277277
# 添加发布机器人评论的标志
278-
footer += f"\n{PUBLISH_BOT_MARKER}"
278+
footer += f"\n{NONEFLOW_MARKER}"
279279

280280
comment = COMMENT_MESSAGE_TEMPLATE.format(
281281
title=COMMENT_TITLE, body=body, tips=TIPS_MESSAGE, footer=footer

tests/process/test_publish_check.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@
153153
# "owner",
154154
# "repo",
155155
# 1,
156-
# body="""# 📃 商店发布检查结果\n\n> Bot: test\n\n**✅ 所有测试通过,一切准备就绪!**\n\n<details><summary>详情</summary><pre><code><li>✅ 标签: test-#ffffff。</li><li>✅ 项目 <a href="https://v2.nonebot.dev">主页</a> 返回状态码 200。</li></code></pre></details>\n\n---\n\n💡 如需修改信息,请直接修改 issue,机器人会自动更新检查结果。\n💡 当插件加载测试失败时,请发布新版本后在当前页面下评论任意内容以触发测试。\n\n💪 Powered by [NoneBot2 Publish Bot](https://github.com/nonebot/nonebot2-publish-bot)\n<!-- PUBLISH_BOT -->\n""",
156+
# body="""# 📃 商店发布检查结果\n\n> Bot: test\n\n**✅ 所有测试通过,一切准备就绪!**\n\n<details><summary>详情</summary><pre><code><li>✅ 标签: test-#ffffff。</li><li>✅ 项目 <a href="https://v2.nonebot.dev">主页</a> 返回状态码 200。</li></code></pre></details>\n\n---\n\n💡 如需修改信息,请直接修改 issue,机器人会自动更新检查结果。\n💡 当插件加载测试失败时,请发布新版本后在当前页面下评论任意内容以触发测试。\n\n💪 Powered by [NoneBot2 Publish Bot](https://github.com/nonebot/noneflow)\n<!-- PUBLISH_BOT -->\n""",
157157
# )
158158

159159

@@ -307,7 +307,7 @@
307307
# "owner",
308308
# "repo",
309309
# 1,
310-
# body="""# 📃 商店发布检查结果\n\n> Bot: test1\n\n**✅ 所有测试通过,一切准备就绪!**\n\n<details><summary>详情</summary><pre><code><li>✅ 标签: test-#ffffff。</li><li>✅ 项目 <a href="https://v2.nonebot.dev">主页</a> 返回状态码 200。</li></code></pre></details>\n\n---\n\n💡 如需修改信息,请直接修改 issue,机器人会自动更新检查结果。\n💡 当插件加载测试失败时,请发布新版本后在当前页面下评论任意内容以触发测试。\n\n💪 Powered by [NoneBot2 Publish Bot](https://github.com/nonebot/nonebot2-publish-bot)\n<!-- PUBLISH_BOT -->\n""",
310+
# body="""# 📃 商店发布检查结果\n\n> Bot: test1\n\n**✅ 所有测试通过,一切准备就绪!**\n\n<details><summary>详情</summary><pre><code><li>✅ 标签: test-#ffffff。</li><li>✅ 项目 <a href="https://v2.nonebot.dev">主页</a> 返回状态码 200。</li></code></pre></details>\n\n---\n\n💡 如需修改信息,请直接修改 issue,机器人会自动更新检查结果。\n💡 当插件加载测试失败时,请发布新版本后在当前页面下评论任意内容以触发测试。\n\n💪 Powered by [NoneBot2 Publish Bot](https://github.com/nonebot/noneflow)\n<!-- PUBLISH_BOT -->\n""",
311311
# )
312312

313313

@@ -376,7 +376,7 @@
376376
# "owner",
377377
# "repo",
378378
# 1,
379-
# body="""# 📃 商店发布检查结果\n\n> Bot: test\n\n**⚠️ 在发布检查过程中,我们发现以下问题:**\n<pre><code><li>⚠️ 项目 <a href="https://test">主页</a> 返回状态码 404。<dt>请确保您的项目主页可访问。</dt></li></code></pre>\n<details><summary>详情</summary><pre><code><li>✅ 标签: test-#ffffff。</li></code></pre></details>\n\n---\n\n💡 如需修改信息,请直接修改 issue,机器人会自动更新检查结果。\n💡 当插件加载测试失败时,请发布新版本后在当前页面下评论任意内容以触发测试。\n\n💪 Powered by [NoneBot2 Publish Bot](https://github.com/nonebot/nonebot2-publish-bot)\n<!-- PUBLISH_BOT -->\n""",
379+
# body="""# 📃 商店发布检查结果\n\n> Bot: test\n\n**⚠️ 在发布检查过程中,我们发现以下问题:**\n<pre><code><li>⚠️ 项目 <a href="https://test">主页</a> 返回状态码 404。<dt>请确保您的项目主页可访问。</dt></li></code></pre>\n<details><summary>详情</summary><pre><code><li>✅ 标签: test-#ffffff。</li></code></pre></details>\n\n---\n\n💡 如需修改信息,请直接修改 issue,机器人会自动更新检查结果。\n💡 当插件加载测试失败时,请发布新版本后在当前页面下评论任意内容以触发测试。\n\n💪 Powered by [NoneBot2 Publish Bot](https://github.com/nonebot/noneflow)\n<!-- PUBLISH_BOT -->\n""",
380380
# )
381381

382382

0 commit comments

Comments
 (0)