showdown/docs/contribution-guide.md

2.1 KiB

If you wish to contribute, this is your starting point.

This document contains guidelines to help you make your contribution clear and consistent. These guidelines also help us to review your PR faster and, as a result, will give you appropriate credit in your GitHub profile.

If you have time to contribute to this project, we are happy to give you credit for it.

We thank you in advance for your contribution!

Features

You can request a new feature by submitting an issue. If you would like to implement a new feature, feel free to issue a Pull Request.

Pull requests

Pull Requests (PRs) are awesome. Get familiar with the following guidelines before you begin:

  1. Search the project for a Pull Request related to your submission. You don't want to duplicate effort.

  2. A PR that contains code changes should be created from a git branch based on develop:

    git checkout -b my-fix-branch develop
    
  3. Follow our coding style rules.

  4. Run full test suite and ensure all tests pass.

    1. If some tests fail, ensure that you follow coding style rules.
  5. One PR - one issue. Refrain from fixing multiple issues in the same pull request. Several small PRs are preferable instead of a big one.

  6. If the PR introduces a new feature or fixes an issue, please add the appropriate test case(s).

  7. Follow conventional commit guidelines for your commit message(s) when saving changes in your branch and PR.

  8. Add your name to the Credits file. We like to give credit where it's due.

  9. If we suggest changes:

    1. Make the required updates.

    2. Re-run test suite to ensure tests are still green.

    3. Rebase your branch and force push to your GitHub repository (this will update your Pull Request):

      git rebase develop -i
      git push origin my-fix-branch -f
      
  10. After your pull request is merged, you can safely delete your branch.