metamaps--metamaps/doc/CONTRIBUTING.md

97 lines
4.2 KiB
Markdown
Raw Permalink Normal View History

2014-09-03 16:02:00 +00:00
# Contributing to Metamaps
2015-12-29 02:47:51 +00:00
Active involvement from the community is essential to help make Metamaps as
beneficial for communities as it can be. You can help by reporting bugs, fixing
bugs, adding features, contributing new modules and by providing feedback.
2014-09-03 16:02:00 +00:00
## Reporting bugs and other issues
If you think you've encountered a bug, do the following:
2015-12-29 02:47:51 +00:00
1. Make sure you are working with the latest version of the Metamaps `develop`
branch.
2. Browse through the [issues][metamaps-issues] to check if anyone else has
already reported. If someone has, feel free to add more information to that
issue to help us solve it.
3. If no one has yet submitted the issue you are encountering, add it in! Please
be sure to include as much information as possible, include errors, warnings,
2014-09-03 16:02:00 +00:00
screenshots, links to a video showing the problem or code that can reproduce
the issue.
## Contributing code
2015-12-29 02:47:51 +00:00
Metamaps is made possible by open source contributors like you. We're very
interested in getting help from the greater community, but before you start it's
important that you become acquainted with our workflow. Following these
guidelines below will make collaboration much smoother and increase the chances
that we will accept your pull request without hiccups.
2014-09-03 16:02:00 +00:00
### Development Process
2015-12-29 02:47:51 +00:00
Our development process is very similar to the approach described in the
well-known article [A Successful Git Branching Model by Vincent Driessen
][git-branching-model]. Here's an overview:
* The `master` branch is the current base for our deployed instances. This
branch *must* remain stable and always work.
* The `develop` branch is the current state of development. Metamaps
developers base their work on this branch. It is not guaranteed to be
stable.
* All code must be reviewed before being committed to develop or master. This
means all commits should take place on your own personal branch, and
submitted via a Github pull request when ready.
* Only maintainers can accept pull requests from forks into the core
Metamaps.cc repository.
2014-09-03 16:02:00 +00:00
### Getting started
1. Make sure you have a [GitHub account](https://github.com/signup/free)
2. [Fork metamaps][fork-metamaps]
2015-12-29 02:47:51 +00:00
3. Keep your fork up to date. Metamaps is a fast moving project, and things
are changing all the time. It's important that any changes you make are
based on the most recent version of metamaps, since it's possible that
something may have changed that breaks your pull request or invalidates it.
4. Make sure you have a [Contributor License Agreement](http://caa.metamaps.cc
) on file.
2014-09-03 16:02:00 +00:00
5. Read on ...
### Contributor License Agreement
Before we can accept any contributions to Metamaps, we first require that all
2015-12-29 02:47:51 +00:00
individuals or companies agree to our Contributor License Agreement (CLA). The
e-mail address used in the pull request will be used to check if a CLA has
already been filed, so be sure to list all email addresses that you might use to
submit your pull requests when filling it out. [Our CLA can be found here](
http://caa.metamaps.cc).
2014-09-03 16:02:00 +00:00
### Testing and Linting
2015-12-29 02:47:51 +00:00
Please run `rspec` in the Metamaps root directory before submitting your pull
request.
2014-09-03 16:02:00 +00:00
### Branch grouping tokens
2015-12-29 02:47:51 +00:00
All pull requests submitted to Metamaps.cc should occur on a new branch. For
these branches, please use a short token indicating the nature of the branch in
question followed by a `/` and then a very concise string describing the branch.
This isn't a very important part of the workflow, but we are currently using the
following branch prefixes:
2014-09-03 16:02:00 +00:00
2015-12-29 02:47:51 +00:00
fix // bug fixes
wip // work in progress (not suitable for a pull request)
instance // (internal) Tracks customizations made to metamaps instances
feature // All other new features
2014-09-03 16:02:00 +00:00
### Bug fixes
If you'd like to contribute a fix for a bug you've encountered, first read up on
[how to report a bug](#reporting-bugs-and-other-issues) and report it so we are
aware of the issue. By filing the issue first, we may be able to provide you
with some insight that guides you in the right direction.
2016-04-13 02:16:54 +00:00
[metamaps-issues]: https://github.com/metamaps/metamaps/labels/bug
2014-09-03 16:02:00 +00:00
[git-branching-model]: http://nvie.com/posts/a-successful-git-branching-model/
2016-04-13 02:16:54 +00:00
[fork-metamaps]: https://github.com/metamaps/metamaps/fork
2014-09-03 16:02:00 +00:00
[cla]: http://metamaps.cc/cla