Skip to content

The open alternative to Salesforce, designed for AI.

ci(pr-review): dispatch on PR open (standard review only) (#23708)

Charles Bocheta9ca1eae95ab
diff --git a/.github/workflows/pr-review-dispatch.yaml b/.github/workflows/pr-review-dispatch.yaml
index e3c00d61ee8..12b39806f05 100644
--- a/.github/workflows/pr-review-dispatch.yaml
+++ b/.github/workflows/pr-review-dispatch.yaml
@@ -3,7 +3,7 @@ run-name: "PR Review Dispatch #${{ github.event.pull_request.number }}"
on:
pull_request_target:
- types: [ready_for_review, synchronize, labeled]
+ types: [opened, ready_for_review, synchronize, labeled]
permissions: {}
@@ -33,6 +33,8 @@ jobs:
env:
GH_TOKEN: ${{ steps.app-token.outputs.token }}
PR_NUMBER: ${{ github.event.pull_request.number }}
+ EVENT: ${{ github.event.action }}
run: |
gh workflow run pr-review.yaml --repo twentyhq/ci-privileged --ref main \
- -f pr_number="$PR_NUMBER"
+ -f pr_number="$PR_NUMBER" \
+ -f event="$EVENT"