mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2025-07-27 09:50:57 +00:00
📦 docs: 资源商店新增发布资源功能
This commit is contained in:
@ -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:
|
||||
|
Reference in New Issue
Block a user