Repository navigation
docs: add a contributing guide and extend the pull request template - #2508
Merged
Merged
Conversation
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.
2 of 12 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
Fixesline, 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
npmcommand and path in both documents checked againstpackage.jsonand the filesystem.npm run lint(2583 files) andnpm run format:check(1594 files) pass.Checklist
Does this PR entail a change in behavior?