From 8971dbb605c0311bac9e915b5c7f56788c8121f3 Mon Sep 17 00:00:00 2001 From: Revone Date: Wed, 8 Nov 2023 20:26:07 +0800 Subject: [PATCH] docs: Conventional Commits of CONTRIBUTING.md, Built-in classic algorithms enriched --- CONTRIBUTING.md | 71 +++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 66 insertions(+), 5 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 09e4859..db53243 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -3,10 +3,70 @@ **General Rules** - As much as possible, try to follow the existing format of markdown and code. -- Don't forget to run `npm run lint` and `npm test` before submitting pull requests. +- Don't forget to run `npm run check`,`npm run lint` and `npm test` before submitting pull requests. - Make sure that **100%** of your code is covered by tests. -**Contributing new features ** +**Conventional Commits** + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
IdentifierPurpose
featIntroduce a new feature
fixFix an error or defect
choreGeneral maintenance tasks (e.g., build, configuration, dependencies)
docsDocumentation changes (additions, updates, fixes)
styleChanges in code style, formatting, whitespace, etc. (no impact on functionality)
refactorCode refactoring (typically, no functional changes)
perfPerformance optimizations
testChanges related to tests (additions, updates, fixes)
buildChanges to the build system or external dependencies
ciChanges related to continuous integration and deployment (CI/CD)
revertRevert a previous commit
mergeMerge branches or pull requests
releaseCommits related to version releases
+ +**Contributing new features** - To ensure that there are no conflicts when merging the branch into the main branch, - it is necessary to perform the following steps each time new development is going to be conducted on non-main branches: @@ -15,8 +75,9 @@ - resolve conflicts before continuing the development. - After new features developed - `git add .` -- `git commit -m [rbtree] features` (`rbtree` needs to be replaced by the module you have modified, -- `features` must be replaced by the detailed description about the features you implemented) +- `git commit -m "feat(rbtree): features` +- `feat(rbtree):` needs to be replaced by the module you have modified +- `features` must be replaced by the detailed description about the features you implemented - `git push` - click the `New pull request` on Github https://github.com/zrwusa/data-structure-typed/branches @@ -26,6 +87,6 @@ contributing "several data structures" all at once contribute them all one by one separately (i.e. one pull request for "RBTree", another one for "AATree" and so on). -- Provide **README.md** for each of the data structure **with explanations** of +- Modify **README.md** for each of the data structure **with explanations** of the algorithm and **with links** to further readings. - Describe what you do in code using **comments**.