Documentation Index
Fetch the complete documentation index at: https://dhanurgo.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
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:| Prefix | Usage | Example |
|---|---|---|
feat/ | New features | feat/toll-reconciliation |
fix/ | Bug fixes | fix/csv-date-parsing |
refactor/ | Code refactoring | refactor/kpi-calculations |
chore/ | Maintenance tasks | chore/update-dependencies |
docs/ | Documentation only | docs/api-routes |
ci/ | CI/CD changes | ci/playwright-setup |
Commit Message Format
Use conventional commits:| Type | When to Use |
|---|---|
feat | New feature |
fix | Bug fix |
refactor | Code change that neither fixes a bug nor adds a feature |
chore | Build, tooling, or dependency changes |
docs | Documentation changes |
test | Adding or updating tests |
ci | CI/CD pipeline changes |
style | Formatting, whitespace (no code logic change) |
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