📦 docs: 资源商店新增发布资源功能

This commit is contained in:
snowykami 2024-09-17 15:03:48 +08:00
parent 4c2231feb5
commit a16a67dbc9

View File

@ -131,8 +131,9 @@ def add_resource(github: Github, issue: Issue, repo: Repository):
def handle_resource(github: Github, issue: Issue, repo: Repository, act_type: str):
if act_type in (OPENED, EDITED):
if act_type == OPENED:
on_first_open(github, issue, repo)
pre_check(github, issue, repo)
elif act_type == CLOSED:
add_resource(github, issue, repo)
else: