Skip to content

Latest commit

 

History

History
64 lines (47 loc) · 4.71 KB

PR_GUIDELINES.md

File metadata and controls

64 lines (47 loc) · 4.71 KB

Pull Request Guidelines

👍🎉 Thanks for taking the time to contribute! 🎉👍

In order to give everyone a chance to submit a pull request and contribute to the project, we have put restrictions in place. This section outlines the guidelines that should be imposed upon pull requests in the project.

Table of Contents

Pull Requests and Issues

  1. Do not start working on any open issue and raise a PR unless the issue is assigned to you. PRs that don't meet these guidelines will be closed.
  2. Pull requests must be based on open issues available.
  3. Use this method to automatically close the issue when the PR is completed.

Linting and Formatting

All the pull requests must have code that is properly linted and formatted, so that uniformity across the repository can be ensured.

Before opening a PR, you can run the following scripts to automatically lint and format the code properly:

npm run lint:fix
npm run format:fix

Both of these scripts also have a check counterpart, which would be used by the GitHub CI to ensure that the code is properly formatted. You can run the following scripts yourself to ensure that your pull request doesn't fail due to linting and formatting errors:

npm run lint:check
npm run format:check

Pull Request Processing

These are key guidelines for the procedure:

Only submit PRs against our main branch

  1. Only submit PRs against our main branch. PRs made against develop will be closed.
  2. We do not accept draft Pull Requests. They will be closed if submitted. We focus on work that is ready for immediate review.
  3. Removing assigned reviewers from your Pull Request will cause it to be closed. The quality of our code is very important to us. Therefore we make experienced maintainers of our code base review your code. Removing these assigned persons is not in the best interest of this goal.
  4. If you have not done so already, please read the Pull Requests and Issues section above.
  5. Each contributor may only create maximum of two pull request at a time. We have this rule in place due to our limited resources - if everyone was allowed to post any number of pull requests, we would not be able to review them properly. It is also better for contributors because you can focus on creating quality PRs - so spend time making sure it is as good as it can be.
  6. Upon successful push to the fork, check if all tests are passing; if not, fix the issues and then create a pull request.
  7. If the pull request's code quality is not up to par, or it would break the app, it will more likely be closed. So please be careful when creating a PR.
  8. Please follow the PR template provided. Ensure the PR title clearly describes the problem it is solving. In the description, include the relevant issue number, snapshots, and videos after changes are added.
  9. If you are borrowing a code, please disclose it. It is fine and sometimes even recommended to borrow code, but we need to know about it to assess your work. If we find out that your pull request contains a lot of code copied from elsewhere, we will close the pull request.
  10. No Work In Progress. ONLY completed and working pull requests and with respective test units will be accepted. A WIP would fall under rule 4 and be closed immediately.
  11. Please do not @mention contributors and mentors. Sometimes it takes time before we can review your pull request or answer your questions, but we'll get to it sooner or later. @mentioning someone just adds to the pile of notifications we get and it won't make us look at your issue faster.
  12. Do not force push. If you make changes to your pull request, please simply add a new commit, as that makes it easy for us to review your new changes. If you force push, we'll have to review everything from the beginning.
  13. PR should be small, easy to review and should follow standard coding styles.
  14. If PR has conflicts because of recently added changes to the same file, resolve issues, test new changes, and submit PR again for review.
  15. PRs should be atomic. That is, they should address one item (issue or feature)
  16. After submitting PR, if you are not replying within 48 hours, then in that case, we may need to assign the issue to other contributors based on the priority of the issue.