From a16a67dbc977efdc043bdaaffb0447d6d27820a1 Mon Sep 17 00:00:00 2001 From: snowykami Date: Tue, 17 Sep 2024 15:03:48 +0800 Subject: [PATCH] =?UTF-8?q?:package:=20docs:=20=E8=B5=84=E6=BA=90=E5=95=86?= =?UTF-8?q?=E5=BA=97=E6=96=B0=E5=A2=9E=E5=8F=91=E5=B8=83=E8=B5=84=E6=BA=90?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- liteyuki_flow/resource_handler.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: