1
0
forked from bot/app

🐛 docs: 添加发布插件表单

This commit is contained in:
2024-09-21 23:16:37 +08:00
parent 76be748160
commit aa4d930cc4
5 changed files with 26 additions and 137 deletions

View File

@ -3,11 +3,11 @@
"""
from typing import Any
from github.Issue import Issue
from liteyuki_flow.typ import Nil, err, nil # type: ignore
# # xxx
class Header:
def __init__(self, level: int, content: str):
@ -137,3 +137,10 @@ class MarkdownParser:
self._parsed = True
return self._content_list, nil
# 解析资源发布issue体
def parse_resource_publish_info(issue: Issue) -> dict[str, str]:
parser = MarkdownParser(issue.body)
parser.parse_front_matters()
return parser.front_matters