fix: don't review on draft pr (#10084)

This commit is contained in:
Phantom 2025-09-10 20:51:59 +08:00 committed by GitHub
parent cf7584bb63
commit 125353c5a3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -14,7 +14,9 @@ jobs:
claude-review: claude-review:
# Only trigger code review for PRs from the main repository due to upstream OIDC issues # Only trigger code review for PRs from the main repository due to upstream OIDC issues
# https://github.com/anthropics/claude-code-action/issues/542 # https://github.com/anthropics/claude-code-action/issues/542
if: github.event.pull_request.head.repo.full_name == github.repository if: |
(github.event.pull_request.head.repo.full_name == github.repository) &&
(github.event.pull_request.draft == false)
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions: permissions:
contents: read contents: read