Contribute to Midway
Midway is an open source framework that welcomes everyone to contribute to the community, and this article describes how to submit issue, contribution code, documentation, and more to Midway.
Report problems
If you encounter some problems in the development process and you cannot solve the problems you need to ask developers, we strongly recommend:
- Find relevant problems in the document first
- If you cannot solve it after searching, you can submit an Q&A.
Please follow the following specifications when submitting the content.
- Explain your purpose clearly in the title or content, either in Chinese or English.
- Describe the following in the content
- If it is a new requirement, please describe the requirement in detail, preferably with pseudo code implementation.
- If it is a BUG, please provide reproduction steps, error logs, screenshots, relevant configurations, framework versions, etc. to enable developers to quickly locate the content of the problem
- If possible, please provide a minimum replicated code warehouse as much as possible for easy debugging.
- Please search for relevant problems before you report them. Make sure you don't open duplicate questions
Developers will mark the problem, reply or solve the problem when they see it.
Fix code problems
If you find that the framework has some problems to be modified, you can submit them through PR.
Pull Request
First, fork a warehouse in the upper-right corner of midway github to your own space.
git clone The warehouse is developed or repaired in local or other IDE environments.
# Create a new branch
$ git checkout -b branch-name
# install dependencies
$ npm i
# build code
$ npm run build
# Develop and execute tests
$ npm test
$ git add . # git add -u to delete files
$ git commit -m "fix(role): role.use must xxx"
$ git push origin branch-name
Create a Pull Request and choose to merge your own project branch into the main branch of the target midwayjs/midway.
The system will automatically create PR under midway warehouse. After the test passes, the developer will merge the PR.
Submit specifications
- General PR uses English titles
- The
fix
,chore
,feat
, anddocs
fields are used to specify the type of the fix.
- The
Fix document problems
Similar to ordinary PR, if it is a single document, it can be submitted by quick editing.
Quick Repair of Single Document
- Open the document that needs to be repaired on the official website and click the Edit this page link in the lower-left corner.
- Click the "Pen Type" button to enter the editing page
- After editing the content, change the submitted title to
docs: xxxx
and click Submit to create a PR.
- After editing the content, change the submitted title to
- Waiting for developers to merge
Multiple document repair
Same as normal PR, clone warehouse, submit. Note that the title of the submitted PR is docs: xxx
.