Skip to content

Commit

Permalink
fix(plugin_test): 修复未通过标签判断是否是插件发布的问题 (#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
he0119 authored Oct 3, 2023
1 parent da97332 commit 5570357
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/lang/zh-CN/

## [Unreleased]

### Fixed

- 修复未通过标签判断是否是插件发布的问题

## [3.1.1] - 2023-10-02

### Fixed
Expand Down
5 changes: 2 additions & 3 deletions src/utils/plugin_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
STORE_PLUGINS_URL = (
"https://raw.githubusercontent.com/nonebot/nonebot2/master/assets/plugins.json"
)

# 匹配信息的正则表达式
ISSUE_PATTERN = r"### {}\s+([^\s#].*?)(?=(?:\s+###|$))"
# 插件信息
Expand Down Expand Up @@ -306,8 +305,8 @@ async def main():
print("议题未开启,已跳过")
return

title = issue.get("title")
if not title.startswith("Plugin"):
labels = issue.get("labels", [])
if not any(label["name"] == "Plugin" for label in labels):
print("议题与插件发布无关,已跳过")
return

Expand Down

0 comments on commit 5570357

Please sign in to comment.