mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2024-11-26 12:55:06 +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):
|
def handle_resource(github: Github, issue: Issue, repo: Repository, act_type: str):
|
||||||
if act_type in (OPENED, EDITED):
|
if act_type in (OPENED, EDITED):
|
||||||
|
if act_type == OPENED:
|
||||||
|
on_first_open(github, issue, repo)
|
||||||
pre_check(github, issue, repo)
|
pre_check(github, issue, repo)
|
||||||
|
|
||||||
elif act_type == CLOSED:
|
elif act_type == CLOSED:
|
||||||
add_resource(github, issue, repo)
|
add_resource(github, issue, repo)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user