Thanks for helping to make Diffusion-UI awesome!
We welcome all kinds of contributions:
- Bug fixes
- Documentation improvements
- New features
- Refactoring & tidying
If you have a specific contribution in mind, be sure to check the issues and pull requests in progress - someone could already be working on something similar and you can help out.
Some tools are used to ensure a coherent coding style. You need to make sure that your code satisfy those requirements or the automated tests will fail.
- eslint
To use the linter to fix your code, run:
npm run lint
If you want to automatically verify that the linting is respected
at every commit, you can put this at the end of a .git/hooks/pre-commit
file:
exec npm run lintcheck
- Make a fork of the main branch on github
- Clone your forked repo on your computer
- Create a feature branch
git checkout -b feature_my_awesome_feature
- Modify the code
- Verify that the Coding guidelines are respected
- Make a commit and push it to your fork
- From github, create the pull request. Automated tests from GitHub actions will then automatically check the code
- If other modifications are needed, you are free to create more commits and push them on your branch. They'll get added to the PR automatically.
Once the Pull Request is accepted and merged, you can safely delete the branch (and the forked repo if no more development is needed).