Skip to content

Instantly share code, notes, and snippets.

@merikan
Last active November 11, 2015 10:04
Show Gist options
  • Save merikan/67bf340e80667e87007b to your computer and use it in GitHub Desktop.
Save merikan/67bf340e80667e87007b to your computer and use it in GitHub Desktop.

How to Contribute

Pull requests are greatly appreciated and are what makes opensource great. Here's a quick guide:

  • Fork it
  • Create your feature branch (git checkout -b my-new-feature)
  • Commit your changes (git commit -am 'Add some feature')
  • Push to the branch (git push origin my-new-feature)
  • Create new Pull Request

Pester us if we don't get your Pull Requests merged in a timely fashion. :)

How to speed the merging of pull requests

  • Describe your changes in the CHANGELOG.
  • Give yourself some credit in the appropriate place (usually the CHANGELOG).
  • Make commits of logical units.
  • Ensure your commit messages help others understand what you are doing and why.
  • Check for unnecessary whitespace with git diff --check before committing.
  • Maintain the same code style.
  • Maintain the same level of test coverage or improve it.

Commit Style

Simple house-keeping for clean git history. Read more on How to Write a Git Commit Message or the Discussion section of git-commit(1).

  1. Separate the subject from body with a blank line
  2. Limit the subject line to 50 characters
  3. Capitalize the subject line
  4. Do not end the subject line with a period
  5. Use the imperative mood in the subject line
  6. Wrap the body at 72 characters
  7. Use the body to explain what and why vs. how
  • If there was important/useful/essential conversation or information, copy or include a reference
  1. When possible, one keyword to scope the change in the subject (i.e. "README: ...", "runtime: ...")
  2. Always refer to the ticket(s) it solves and to any other relevant tickets, articles or other resources

Additional Resources

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment