Skip to content

docs: add a contributing guide and extend the pull request template - #2508

Merged
likun666661 merged 1 commit into
apache:mainfrom
Joob1n:docs/contributing-guide
Aug 8, 2026
Merged

likun666661 merged 1 commit into
apache:mainfrom
Joob1n:docs/contributing-guide

Conversation

@Joob1n

@Joob1n Joob1n commented Aug 8, 2026

Copy link
Copy Markdown
Member

Summary

The repository has no CONTRIBUTING file, so a first contributor has to infer the branch prefix set, the commit format that becomes the squashed commit, and which build/test entry points are the real ones — or get them wrong in review.

This records what the repository already does. It does not propose new rules, and it deliberately avoids two that would not be true here: issue templates are recommended rather than required, since blank issues are enabled; and no PR title length is imposed, since 115 of the last 300 commit subjects exceed 72 characters.

The pull request template gains a Fixes line, an explicit behavior-change question, and a short checklist, so those expectations sit where a PR is actually written.

English and Chinese versions are structurally identical, and both READMEs link to it.

Verification

  • Every npm command and path in both documents checked against package.json and the filesystem.
  • All internal anchors, cross-document links, and the four issue-label URLs resolve.
  • npm run lint (2583 files) and npm run format:check (1594 files) pass.
  • Documentation only — no code paths touched, so no test suites were run.

Checklist

  • Tests cover the change and fail without it — n/a, documentation only
  • Lint, format, typecheck and the affected suites pass locally

Does this PR entail a change in behavior?

  • Yes — described under Summary above
  • No

The repository had no CONTRIBUTING file, so the conventions a first
contributor needs — branch prefixes, the commit format that becomes the
squashed commit, which build and test entry points are the real ones — were
only discoverable by reading history or by getting them wrong in review.

The guide records what the repository already does rather than proposing
anything new. Two things it deliberately does not claim: issue templates are
recommended rather than required, because blank issues are enabled; and no
PR title length limit is stated, because 115 of the last 300 commit subjects
would violate any of the usual ones.

The pull request template gains a Fixes line, a behavior-change question, and
a short checklist, so those expectations sit where a PR is written instead of
in a document nobody opens at that moment.
@likun666661
likun666661 merged commit 30a6e2a into apache:main Aug 8, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants