Files
ai-passport/docs/contribution/commit-and-pr.md
T

2.0 KiB

简体中文 · English

Commit and Pull Request Conventions

Commits

  • Use an English imperative subject and Conventional Commit form: type(scope): description.
  • Use feat, fix, docs, refactor, perf, test, chore, build, or ci. Keep the subject at most 72 characters and omit the final period.
  • Keep each commit independently reviewable. Describe the final diff, not the debugging journey.
  • Review the complete diff, run applicable checks, and exclude credentials, generated firmware, and unrelated files.
  • Do not edit the paired changelog files in an ordinary feature, application, or documentation commit. Describe user-visible behavior, compatibility, and release-flow impact in the pull-request body; only a release-preparation change maintained before tagging aggregates those merged changes into both files.
  • Creating a commit does not authorize pushing, opening a PR, releasing, or merging.
  • Write durable product constraints, data formats, architecture decisions, and acceptance criteria back to their authoritative document. Do not preserve transient debugging notes.

Pull requests

  • Use English for the PR title, following the Conventional Commit format and English imperative style.
  • Write the PR body in English and complete .github/PULL_REQUEST_TEMPLATE.md.
  • Report Build, Host tests, and Device tests separately. Put unperformed hardware work under Unverified.
  • Pin, rotation, codec-clock, ADC, DMA, Flash-layout, and power changes require the board revision and observed hardware results before the PR is ready to merge.
  • Attach a photo or screenshot for display changes and explicitly describe wiring, pin-map, persistent-format, and compatibility impacts.
  • In a PR opened to the upstream FoloToy/ai-passport project, do not add or modify the repository-root README.md / README.zh_CN.md — the root README is fork-owner reserved content (upstream keeps its overview at docs/README.md).