mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2024-11-22 21:27:43 +08:00
📦 docs: 资源商店新增发布资源功能
This commit is contained in:
parent
4c2231feb5
commit
a16a67dbc9
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user