Skip to content

Commit

Permalink
📦 docs: 资源商店新增发布资源功能
Browse files Browse the repository at this point in the history
  • Loading branch information
snowykami committed Sep 17, 2024
1 parent 4c2231f commit a16a67d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion liteyuki_flow/resource_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a16a67d

Please sign in to comment.