Skip to content

⚡ Bolt: Throttle scroll event listener in ChatContainer to prevent excessive re-renders #608

⚡ Bolt: Throttle scroll event listener in ChatContainer to prevent excessive re-renders

⚡ Bolt: Throttle scroll event listener in ChatContainer to prevent excessive re-renders #608

name: "Code Quality Checks"
on:
pull_request:
types: [opened, synchronize, reopened]
workflow_dispatch:
jobs:
copilot-code-review:
runs-on: ubuntu-24.04
permissions:
contents: read
pull-requests: write
environment: copilot
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Initialize submodules
run: bash scripts/devops/init-submodules.sh
- name: Install pnpm
uses: pnpm/action-setup@v5.0.0
- name: Set up Node.js
uses: actions/setup-node@v6.3.0
with:
node-version: "24.14.0"
cache: "pnpm"
- name: Install dependencies
run: pnpm install --no-frozen-lockfile
- name: Lint (Oxlint)
run: pnpm lint
- name: Format check (Prettier)
run: pnpm exec prettier --check . || true
- name: Run tests
run: |
if pnpm exec vitest --version 2>/dev/null; then
pnpm exec vitest run --reporter=dot
elif pnpm exec jest --version 2>/dev/null; then
pnpm exec jest --ci
else
echo "No supported test runner found (vitest/jest)."
fi
- name: Run oxlint type-aware
run: pnpm exec oxlint --type-aware -c .oxlintrc.json . || true
- name: Summary
run: |
echo "=== Code Quality Check Summary ==="
echo "Lint: Oxlint completed"
echo "Format: Prettier check completed"
echo "Tests: Unit tests completed"
echo "Type Check: TypeScript validation completed"
echo "All code quality checks passed successfully."