From 811d1594cdbb9d761f7bcc2fe39a7eda06470bfb Mon Sep 17 00:00:00 2001 From: snowykami Date: Tue, 17 Sep 2024 16:19:47 +0800 Subject: [PATCH] =?UTF-8?q?:package:=20docs:=20=E8=B5=84=E6=BA=90=E5=95=86?= =?UTF-8?q?=E5=BA=97=E6=96=B0=E5=A2=9E=E5=8F=91=E5=B8=83=E8=B5=84=E6=BA=90?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- liteyuki_flow/resource_handler.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/liteyuki_flow/resource_handler.py b/liteyuki_flow/resource_handler.py index d02b7a29..a1c1f4f2 100644 --- a/liteyuki_flow/resource_handler.py +++ b/liteyuki_flow/resource_handler.py @@ -88,13 +88,13 @@ def pre_check(github: Github, issue: Issue, repo: Repository) -> err: metadata_markdown += f"**{k}**: {v}\n" new_issue_body = f"---\nname: {name}\ndesc: {desc}\nlink: {link}\nhomepage: {homepage}\nauthor: {author}\n---\n" - new_issue_body += f"# Resource: {name}\n" - new_issue_body += f"## 发布信息\n{desc}\n" - new_issue_body += f"**名称**: {name}\n" - new_issue_body += f"**描述**: {desc}\n" - new_issue_body += f"**作者**: {author}\n" - new_issue_body += f"**主页**: {homepage}\n" - new_issue_body += f"**下载**: {link}\n" + + publish_info = f"## 发布信息\n{desc}\n" + publish_info += f"**名称**: {name}\n" + publish_info += f"**描述**: {desc}\n" + publish_info += f"**作者**: {author}\n" + publish_info += f"**主页**: {homepage}\n" + publish_info += f"**下载**: {link}\n" # 遍历其他字段 for k, v in data.items(): if k not in ("name", "description", "version"): @@ -102,7 +102,7 @@ def pre_check(github: Github, issue: Issue, repo: Repository) -> err: issue.edit(title=f"Resource: {name}", body=new_issue_body) issue.add_to_labels("pre-checked") - push_check_result(issue, "✅ 预检查通过,等待管理员人工审核\n## 元数据\n" + metadata_markdown) + push_check_result(issue, f"✅ 预检查通过,等待管理员人工审核\n{publish_info}\n## 元数据\n{metadata_markdown}") return nil