From 2a3deca6315803577e7e20c2410baec2405707f8 Mon Sep 17 00:00:00 2001 From: hexqi Date: Wed, 3 Jan 2024 15:48:55 -0800 Subject: [PATCH] modify action event --- .github/workflows/ai-code-review.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ai-code-review.yml b/.github/workflows/ai-code-review.yml index eda72a1..5e9d403 100644 --- a/.github/workflows/ai-code-review.yml +++ b/.github/workflows/ai-code-review.yml @@ -5,11 +5,12 @@ permissions: pull-requests: write on: - pull_request_target: - types: [opened, reopened, synchronize] + issue_comment: + types: [created] jobs: review: + if: contains(github.event.comment.body, '/review') runs-on: ubuntu-latest steps: - uses: anc95/ChatGPT-CodeReview@main