PR Checklist
Every pull request must pass a set of local checks before it is created. This page covers the required commands, branch naming rules, and commit conventions.Pre-PR Checks
Run all four checks locally before pushing your branch. Every check must pass with zero errors.1. Lint
2. Type Check
3. Unit Tests
4. Production Build
Quick All-in-One Command
Run all checks in sequence. If any step fails, the chain stops:The
npm run build step is omitted from the one-liner since it takes longer. Run it separately after the quick checks pass.Branch Naming
All work must be done on a feature branch. Branch names follow this convention:Commit Message Format
Use conventional commits:
Examples:
Branch Protection Rules
These rules are enforced and have no exceptions:- Never run
git push origin mainorgit push --force origin main - Never use
--no-verifyto bypass hooks when pushing to main - Never force push to main under any circumstances
- Always create a feature branch first, push to it, then open a PR
Git Rules
- Do not add
Co-Authored-Bylines to commit messages - Keep commit messages concise and descriptive
- Squash trivial fix-up commits before requesting review
Workflow Summary
What GitHub Actions Will Check
When you open a PR, the CI pipeline runs the same checks:npm run lint— Lint errors fail the buildnpx tsc --noEmit— Type errors fail the buildnpm run test -- --run— Test failures fail the buildnpm run build— Build errors fail the build- Playwright E2E tests — Run against the preview deployment