Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 1.38 KB

File metadata and controls

30 lines (21 loc) · 1.38 KB

Contributing

Thank you for helping improve Knowhere API Dashboard.

Branches and pull requests

  • Public repository work should target the public repository main branch.
  • Publication cleanup from the private repository must stay on a dedicated cleanup branch and be copied into the public repository as files, not by preserving private Git history.
  • Do not include private infrastructure identifiers, private deployment commands, local artifacts, or secrets in a public pull request.

Local workflow

  1. Install dependencies with pnpm install.
  2. Copy .env.example to .env.local and fill in local values.
  3. Run pnpm dev for development.
  4. Before opening a pull request, run pnpm lint, pnpm type-check, pnpm test, and pnpm build.

Code style

  • Use TypeScript with explicit types for exported functions and non-obvious values.
  • Keep files and directories in kebab-case.
  • Prefer small, intention-revealing functions and immutable data.
  • Validate data at boundaries and keep API/data-access logic separated from UI code.
  • Use existing local patterns before adding new abstractions.

Pull request expectations

  • Describe user-visible behavior changes and deployment or environment changes.
  • Include the validation commands you ran.
  • Call out any open DevOps decisions, especially image publishing, runtime environment injection, and private production deployment ownership.