diff --git a/liteyuki_flow/resource_handler.py b/liteyuki_flow/resource_handler.py index f64ca011..2257ab81 100644 --- a/liteyuki_flow/resource_handler.py +++ b/liteyuki_flow/resource_handler.py @@ -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: