We'd love for you to contribute to our source code and to make our project even better than it is today! Here are the guidelines we'd like you to follow:
- Question or Problem?
- Issues and Bugs
- Feature Requests
- Submission Guidelines
- Coding Rules
- Commit Message Guidelines
If you have questions about how to use this project, please open an issue on GitHub.
If you find a bug in the source code or a mistake in the documentation, you can help us by submitting an issue to respective GitHub repository. Even better you can submit a Pull Request with a fix.
You can request a new feature by submitting an issue to our GitHub repository. If you would like to implement a new feature then consider what kind of change it is:
- Major Changes that you wish to contribute to the project should be discussed first with (at least some of) core team members, in order to prevent duplication of work, and help you to craft the change so that it is successfully accepted into the project.
- Small Changes can be crafted and submitted to the GitHub repository as a Pull Request.
Before you submit your issue search the archive, maybe your question was already answered.
If your issue appears to be a bug, and hasn't been reported, open a new issue. Help us to maximize the effort we can spend fixing issues and adding new features, by not reporting duplicate issues.
Before you submit your merge request consider the following guidelines:
-
Search GitHub repository for an open or closed Pull Request that relates to your submission. You don't want to duplicate effort.
-
Make your changes in a new branch:
git checkout -b my-branch master
-
Follow our Coding Rules.
-
Add an entry in a decision log for major changes.
-
Commit your changes using a descriptive commit message that follows our commit message conventions.
-
Push your branch to GitHub:
git push origin my-fix-branch
In GitHub, send a Pull Request to a master
branch. If we suggest changes,
then:
- Make the required updates.
- Re-run the test suite to ensure tests are still passing.
- Commit your changes to your branch (e.g.
my-branch
). - Push the changes to GitHub repository (this will update your Pull Request).
If the PR gets too outdated we may ask you to merge and push to update the PR:
git fetch upstream
git merge upstream/master
git push origin my-fix-branch
That's it! Thank you for your contribution!
To ensure consistency throughout the source code, keep these rules in mind as you are working:
- This repository contains
.editorconfig
file, which configures IDE code formatting. Do not override these settings.
We have very precise rules over how our git commit messages can be formatted. This leads to more readable messages that are easy to follow when looking through the project history.
The commit message formatting can be added using a typical git workflow or
through the use of a CLI wizard
(Commitizen). To use the wizard, run
npm run cz
in your terminal after staging your changes in git.
If the commit reverts a previous commit, it should begin with revert:
,
followed by the header of the reverted commit. In the body it should say:
This reverts commit <hash>.
, where the hash is the SHA of the commit being
reverted.
Must be one of the following:
- feat: A new feature
- fix: A bug fix
- docs: Documentation only changes
- style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
- refactor: A code change that neither fixes a bug nor adds a feature
- perf: A code change that improves performance
- test: Adding missing or correcting existing tests
- chore: Changes to the build process or auxiliary tools and libraries such as documentation generation
The subject contains succinct description of the change:
- use the imperative, present tense: "change" not "changed" nor "changes"
- don't capitalize first letter
- no dot (.) at the end
Just as in the subject, use the imperative, present tense: "change" not "changed" nor "changes". The body should include the motivation for the change and contrast this with previous behavior.
The footer should contain any information about Breaking Changes and is also the place to reference GitHub issues that this commit closes.
Breaking Changes should start with the word BREAKING CHANGE:
with a space
or two newlines. The rest of the commit message is then used for this.