|
| 1 | +# Contributing Guide |
| 2 | + |
| 3 | +Hi! I’m really excited that you are interested in contributing to Formily. Before submitting your contribution though, please make sure to take a moment and read through the following guidelines. |
| 4 | + |
| 5 | +- [Issue Reporting Guidelines](#issue-reporting-guidelines) |
| 6 | +- [Pull Request Guidelines](#pull-request-guidelines) |
| 7 | +- [Git Commit Specific](./GIT_COMMIT_SPECIFIC.md) |
| 8 | + |
| 9 | +## Issue Reporting Guidelines |
| 10 | + |
| 11 | +- The issue list of this repo is **exclusively** for bug reports and feature requests. Non-conforming issues will be closed immediately. |
| 12 | + |
| 13 | + - For simple beginner questions, you can get quick answers from |
| 14 | + |
| 15 | + - For more complicated questions, you can use Google or StackOverflow. Make sure to provide enough information when asking your questions - this makes it easier for others to help you! |
| 16 | + |
| 17 | +- Try to search for your issue, it may have already been answered or even fixed in the development branch. |
| 18 | + |
| 19 | +- Check if the issue is reproducible with the latest stable version of Formily. If you are using a pre-release, please indicate the specific version you are using. |
| 20 | + |
| 21 | +- It is **required** that you clearly describe the steps necessary to reproduce the issue you are running into. Issues with no clear repro steps will not be triaged. If an issue labeled "need repro" receives no further input from the issue author for more than 5 days, it will be closed. |
| 22 | + |
| 23 | +- For bugs that involves build setups, you can create a reproduction repository with steps in the README. |
| 24 | + |
| 25 | +- If your issue is resolved but still open, don’t hesitate to close it. In case you found a solution by yourself, it could be helpful to explain how you fixed it. |
| 26 | + |
| 27 | +## Pull Request Guidelines |
| 28 | + |
| 29 | +- Only code that's ready for release should be committed to the master branch. All development should be done in dedicated branches. |
| 30 | +- Checkout a **new** topic branch from master branch, and merge back against master branch. |
| 31 | +- Work in the `src` folder and **DO NOT** checkin `dist` in the commits. |
| 32 | +- Make sure `npm test` passes. |
| 33 | +- If adding new feature: |
| 34 | + - Add accompanying test case. |
| 35 | + - Provide convincing reason to add this feature. Ideally you should open a suggestion issue first and have it greenlighted before working on it. |
| 36 | +- If fixing a bug: |
| 37 | + - If you are resolving a special issue, add `(fix #xxxx[,#xxx])` (#xxxx is the issue id) in your PR title for a better release log, e.g. `update entities encoding/decoding (fix #3899)`. |
| 38 | + - Provide detailed description of the bug in the PR. Live demo preferred. |
| 39 | + - Add appropriate test coverage if applicable. |
| 40 | + |
| 41 | +## Git Commit Specific |
| 42 | + |
| 43 | +- Your commits message must follow our [git commit specific](./GIT_COMMIT_SPECIFIC.md). |
| 44 | +- We will check your commit message, if it does not conform to the specification, the commit will be automatically refused, make sure you have read the specification above. |
| 45 | +- You could use `git cz` with a CLI interface to replace `git commit` command, it will help you to build a proper commit-message, see [commitizen](https://github.com/commitizen/cz-cli). |
| 46 | +- It's OK to have multiple small commits as you work on your branch - we will let GitHub automatically squash it before merging. |
0 commit comments