diff --git a/.github/workflows/openai-review.yml b/.github/workflows/openai-review.yml index 497f6a0143..25d3c99cf7 100644 --- a/.github/workflows/openai-review.yml +++ b/.github/workflows/openai-review.yml @@ -5,6 +5,7 @@ jobs: permissions: write-all runs-on: ubuntu-latest name: OpenAI PR Comment + if: "contains(github.event.pull_request.labels.*.name, 'option.review-by-ai')" steps: - uses: actions/checkout@v3 with: @@ -23,7 +24,6 @@ jobs: PATCH_PR: ${{ github.event.pull_request.number }} PATCH_REPO: ${{ github.repository }} - id: review - if: contains(github.event.issue.labels.*.name, 'chatGPT review') uses: taikoxyz/openai-review-action@main with: GIT_COMMIT_HASH: ${{ github.event.pull_request.head.sha }}