From bf5ebc9245ad7e57975a733f40c58d184f1ddf2f Mon Sep 17 00:00:00 2001 From: Junyan Qin <1010553892@qq.com> Date: Wed, 27 Dec 2023 15:23:53 +0000 Subject: [PATCH] =?UTF-8?q?test:=20=E9=94=99=E8=AF=AF=E7=9A=84=E8=A7=A6?= =?UTF-8?q?=E5=8F=91=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/test-pr.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test-pr.yml b/.github/workflows/test-pr.yml index f2e37137..415c25ee 100644 --- a/.github/workflows/test-pr.yml +++ b/.github/workflows/test-pr.yml @@ -8,7 +8,7 @@ on: - '**.py' pull_request_review: types: [submitted] - pull_request_review_comment: + issue_comment: types: [created] # 允许手动触发 workflow_dispatch: @@ -21,7 +21,7 @@ jobs: github.event_name == 'pull_request' || (github.event_name == 'pull_request_review' && github.event.review.state == 'APPROVED') || github.event_name == 'workflow_dispatch' || - (github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '/test') && github.event.comment.user.login == 'RockChinQ') + (github.event_name == 'issue_comment' && github.event.issue.pull_request != '' && contains(github.event.comment.body, '/test') && github.event.comment.user.login == 'RockChinQ') steps: # 签出测试工程仓库代码 - name: Checkout @@ -52,4 +52,4 @@ jobs: - name: Run test run: | cd qcg-tester - python main.py + python main.py \ No newline at end of file