First of all, let me thank you for deciding to contribute to Sentinel DOM!
These steps will take you through the process of contributing to the repository:
- Fork Sentinel DOM,
- Create a new branch (feature/bug). Follow the Git workflow,
- Submit a new pull request from the forked repository. Select the original repository as the target for your pull request,
- Provide what is needed for test coverage,
- Undergo the process of code review and merging the code.
There are additional suggestions depending on whether you are about to submit a new feature or a bugfix.
- Fork the repository.
- Create a new branch with the prefix
bug
when submitting a bugfix, orfeature
when submitting a new feature. The branch name should look like this:feature/auto-tracking
. - Implement your changes.
- Rebase your branch relatively to the current
master
in the original repository. - Create a new pull request in your fork repository. Select an original repository as a target branch.
- Await a code review and provide the changes to the code, when necessary.
- Your contribution should not decrease the test coverage of the library
- Your contribution (code) should be covered with the corresponding tests
- All tests should pass
Take it as a rule of thumb to run tests before submitting a pull request:
npm test
This will run both Node and browser (Chrome) tests in the console. Ensure there is no tests failing, otherwise fix the issues causing tests to fail.
- Make sure a similar feature has not been already suggested (see the Issues),
- Fill in the issue template, describing your great feature,
- Submit a pull request, if you know how to get the feature done. Otherwise, participate in the discussion with the library maintainers, to shape the best out of the feature.
- Make sure the bug you are about to report has not been already submitted (see the Issues),
- Fill in the issue template with the requested information. This helps tremendously to investigate and resolve the bugs,
- Submit a pull request if you already know the solution for the issue
- Follow the process of code review and merging the fix.
Have you had any questions, feel free to reach out to any of the library's contributors. Thank you.