ci: trigger code-qa workflow on pull_request_review approval (#11636)

This commit is contained in:
Hannes Rudolph 2026-02-20 11:33:43 -07:00 committed by GitHub
parent 2991bc9a39
commit a55c85a8ec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -7,9 +7,15 @@ on:
pull_request:
types: [opened, reopened, ready_for_review, synchronize]
branches: [main]
pull_request_review:
types: [submitted]
branches: [main]
jobs:
check-translations:
if: |
github.event_name != 'pull_request_review' ||
github.event.review.state == 'approved'
runs-on: ubuntu-latest
steps:
- name: Checkout code
@ -20,6 +26,9 @@ jobs:
run: node scripts/find-missing-translations.js
knip:
if: |
github.event_name != 'pull_request_review' ||
github.event.review.state == 'approved'
runs-on: ubuntu-latest
steps:
- name: Checkout code
@ -30,6 +39,9 @@ jobs:
run: pnpm knip
compile:
if: |
github.event_name != 'pull_request_review' ||
github.event.review.state == 'approved'
runs-on: ubuntu-latest
steps:
- name: Checkout code
@ -43,6 +55,9 @@ jobs:
unit-test:
name: platform-unit-test (${{ matrix.name }})
if: |
github.event_name != 'pull_request_review' ||
github.event.review.state == 'approved'
runs-on: ${{ matrix.os }}
strategy:
matrix: