Skip to content

Latest commit

 

History

History
113 lines (82 loc) · 4.17 KB

CONTRIBUTING.md

File metadata and controls

113 lines (82 loc) · 4.17 KB

Contributing

Contents

Reporting bugs

Before submitting your issue please check that you've completed the following steps:

  • Made sure you're on the latest version
  • Used the search feature to ensure that the bug hasn't been reported before

Bug reports should contain the following information:

  • Summary: A brief description.
  • Steps to reproduce: How did you encounter the bug? Instructions to reproduce it.
  • Expected behavior: How did you expect it to behave?
  • Actual behavior: How did it actually behave?
  • References: Links to any related tickets or information sources.
  • If possible, attach visual documentation of the bug. Screenshot or animated gif

Git Workflow

Introduction to Github Flow https://guides.github.com/introduction/flow/

Pull Request General Guidelines

  • Please check to make sure that there aren't existing pull requests attempting to address the issue mentioned.
  • Check for related issues on the issue tracker.
  • Non-trivial changes should be discussed on an issue first.
  • Let us know you're working on the issue.
  • Develop in a topic branch, not master.
  • Provide useful pull request description
  • Squash your commits.
  • Write a good description of your PR.

Always follow these rules:

  • Commit each fix as a separate change.
  • Provide useful commit messages.
  • Use the imperative mood in the subject line. Eg. fix login error, add config file, remove unused code
  • Provide a short commit message in the first line (50-72 character). Looking at the output of gitk or git log --oneline might help you understand why.
  • Reference the git issue on the body of your commit message, never on the first line. Eg:
git commit -m 'add login feature
connects to #3'
  • Don't pollute the log! http://bit.ly/1MDciJG
    • Don't push to master any 'merge messages'
    • Update your local development branch with git pull --rebase origin master
    • Always Rebase over merge.

How To Create a Pull Request

Clone the repo

  • Click the GitHub fork button to create your own fork.
  • Clone your fork of the repo to your dev system.
git clone [email protected]:gaboesquivel/standard-module-boilerplate.git

Let us Know you're working on the issue ( for non-trivial updates )

If you're actively working on an issue, please comment in the issue thread stating that you're working on a fix, or (if you're an official contributor) assign it to yourself.

If there's no issue, please create one.

This way, others will know they shouldn't try to work on a fix at the same time.

Create a feature branch

git checkout -b <your-branch-name>

Make your changes and commit

  • Make sure you comply with the .editorconfig
  • Provide a useful short description.
  • Reference the git issue on the body of your commit message, never on the first line.
git commit -m '<short description of change>
connects to #<your-issue-number>'

Create a Pull Request

Create a pull request so others can review the changes.

git push <your-git-account> <your-feature-branch>
  • Open your repository fork on GitHub
  • You should see a button to create a pull request - Press it
  • Reference the issue number in your pull request message.
  • Consider mentioning a contributor in your pull request comments to alert them that it's available for review
  • Wait for the reviewer to approve and merge the request
  • Minor documentation grammar/spelling fixes (code example changes should be reviewed)

Working on your first Pull Request? You can learn how from this free series How to Contribute to an Open Source Project on GitHub

Advanced Git tools

There are also tools like Hub and git-extras that facilitate interacting with Github. You can leverage these tools to contribute to this repository.