2017-10-31 14:09:23 -04:00
## Developer Certificate of Origin + License
By contributing to GitLab B.V., You accept and agree to the following terms and
2017-11-01 14:16:33 -04:00
conditions for Your present and future Contributions submitted to GitLab B.V.
Except for the license granted herein to GitLab B.V. and recipients of software
distributed by GitLab B.V., You reserve all right, title, and interest in and to
Your Contributions. All Contributions are subject to the following DCO + License
2017-10-31 17:17:49 -04:00
terms.
2017-10-31 14:09:23 -04:00
2017-11-01 14:16:33 -04:00
[DCO + License ](https://gitlab.com/gitlab-org/dco/blob/master/README.md )
2017-03-01 04:25:13 -05:00
2018-05-03 10:59:58 -04:00
All Documentation content that resides under the [doc/ directory ](/doc ) of this
repository is licensed under Creative Commons:
[CC BY-SA 4.0 ](https://creativecommons.org/licenses/by-sa/4.0/ ).
2017-09-03 07:22:44 -04:00
_This notice should stay as the first item in the CONTRIBUTING.md file._
2017-03-01 04:25:13 -05:00
---
2016-02-08 03:51:39 -05:00
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE - RUN doctoc TO UPDATE -->
**Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)*
2018-08-09 06:09:07 -04:00
- [Contributing Documentation has been moved ](#contributing-documentation-has-been-moved )
2016-02-08 03:51:39 -05:00
- [Contribute to GitLab ](#contribute-to-gitlab )
2017-03-01 04:25:13 -05:00
- [Security vulnerability disclosure ](#security-vulnerability-disclosure )
2018-08-09 06:09:07 -04:00
- [Code of conduct ](#code-of-conduct )
2017-03-01 04:25:13 -05:00
- [Closing policy for issues and merge requests ](#closing-policy-for-issues-and-merge-requests )
- [Helping others ](#helping-others )
- [I want to contribute! ](#i-want-to-contribute )
2018-08-09 06:09:07 -04:00
- [Contribution Flow ](#contribution-flow )
2017-04-27 12:55:15 -04:00
- [Workflow labels ](#workflow-labels )
2018-08-09 06:09:07 -04:00
- [Type labels ](#type-labels )
- [Subject labels ](#subject-labels )
- [Team labels ](#team-labels )
- [Release Scoping labels ](#release-scoping-labels )
- [Priority labels ](#priority-labels )
- [Severity labels ](#severity-labels )
2018-09-15 13:02:31 -04:00
- [Severity impact guidance ](#severity-impact-guidance )
2018-08-09 06:09:07 -04:00
- [Label for community contributors ](#label-for-community-contributors )
- [Implement design & UI elements ](#implement-design--ui-elements )
2017-03-01 04:25:13 -05:00
- [Issue tracker ](#issue-tracker )
2018-08-09 06:09:07 -04:00
- [Issue triaging ](#issue-triaging )
- [Feature proposals ](#feature-proposals )
- [Issue tracker guidelines ](#issue-tracker-guidelines )
- [Issue weight ](#issue-weight )
- [Regression issues ](#regression-issues )
- [Technical and UX debt ](#technical-and-ux-debt )
- [Stewardship ](#stewardship )
2017-03-01 04:25:13 -05:00
- [Merge requests ](#merge-requests )
2018-08-09 06:09:07 -04:00
- [Merge request guidelines ](#merge-request-guidelines )
- [Contribution acceptance criteria ](#contribution-acceptance-criteria )
2017-03-01 04:25:13 -05:00
- [Definition of done ](#definition-of-done )
- [Style guides ](#style-guides )
2016-02-08 03:51:39 -05:00
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
2017-03-01 04:25:13 -05:00
---
2017-02-19 19:21:35 -05:00
2018-08-09 06:09:07 -04:00
## Contributing Documentation has been moved
As of July 2018, all the documentation for contributing to the GitLab project has been moved to a new location.
[view the new documentation ](doc/development/contributing/index.md ) to find the latest information.
2017-02-19 19:21:35 -05:00
## Contribute to GitLab
2012-12-10 06:15:51 -05:00
2015-12-14 17:14:23 -05:00
Thank you for your interest in contributing to GitLab. This guide details how
2018-08-17 18:16:09 -04:00
to contribute to GitLab in a way that is easy for everyone.
For a first-time step-by-step guide to the contribution process, please see
["Contributing to GitLab" ](https://about.gitlab.com/contributing/ ).
2013-08-05 08:23:25 -04:00
2018-09-15 13:02:31 -04:00
Looking for something to work on? Look for issues in the [Backlog (Accepting merge requests) milestone ](#i-want-to-contribute ).
2017-06-26 05:41:44 -04:00
2015-12-14 15:07:53 -05:00
GitLab comes into two flavors, GitLab Community Edition (CE) our free and open
source edition, and GitLab Enterprise Edition (EE) which is our commercial
edition. Throughout this guide you will see references to CE and EE for
abbreviation.
2018-08-17 18:16:09 -04:00
If you want to know how the GitLab [core team]
2015-12-14 17:14:23 -05:00
operates please see [the GitLab contributing process ](PROCESS.md ).
2018-08-17 18:16:09 -04:00
[GitLab Inc engineers should refer to the engineering workflow document ](https://about.gitlab.com/handbook/engineering/workflow/ )
2016-08-02 08:40:41 -04:00
2013-11-14 13:40:05 -05:00
## Security vulnerability disclosure
2015-12-14 17:14:23 -05:00
Please report suspected security vulnerabilities in private to
`support@gitlab.com` , also see the
[disclosure section on the GitLab.com website ](https://about.gitlab.com/disclosure/ ).
Please do **NOT** create publicly viewable issues for suspected security
vulnerabilities.
2013-11-14 13:40:05 -05:00
2018-08-09 06:09:07 -04:00
## Code of conduct
As contributors and maintainers of this project, we pledge to respect all
people who contribute through reporting issues, posting feature requests,
updating documentation, submitting pull requests or patches, and other
activities.
We are committed to making participation in this project a harassment-free
experience for everyone, regardless of level of experience, gender, gender
identity and expression, sexual orientation, disability, personal appearance,
body size, race, ethnicity, age, or religion.
Examples of unacceptable behavior by participants include the use of sexual
language or imagery, derogatory comments or personal attacks, trolling, public
or private harassment, insults, or other unprofessional conduct.
Project maintainers have the right and responsibility to remove, edit, or
reject comments, commits, code, wiki edits, issues, and other contributions
that are not aligned to this Code of Conduct. Project maintainers who do not
follow the Code of Conduct may be removed from the project team.
This code of conduct applies both within project spaces and in public spaces
when an individual is representing the project or its community.
Instances of abusive, harassing, or otherwise unacceptable behavior can be
reported by emailing `contact@gitlab.com` .
This Code of Conduct is adapted from the [Contributor Covenant][contributor-covenant], version 1.1.0,
available at [http://contributor-covenant.org/version/1/1/0/ ](http://contributor-covenant.org/version/1/1/0/ ).
2013-12-30 08:27:18 -05:00
## Closing policy for issues and merge requests
2012-12-10 06:15:51 -05:00
2015-12-14 17:14:23 -05:00
GitLab is a popular open source project and the capacity to deal with issues
and merge requests is limited. Out of respect for our volunteers, issues and
merge requests not in line with the guidelines listed in this document may be
closed without notice.
2013-06-29 10:19:10 -04:00
2015-12-14 17:14:23 -05:00
Please treat our volunteers with courtesy and respect, it will go a long way
towards getting your issue resolved.
2013-04-12 05:25:25 -04:00
2015-12-14 17:14:23 -05:00
Issues and merge requests should be in English and contain appropriate language
for audiences of all ages.
2013-07-07 07:46:37 -04:00
2017-03-16 12:40:07 -04:00
If a contributor is no longer actively working on a submitted merge request
we can decide that the merge request will be finished by one of our
[Merge request coaches][team] or close the merge request. We make this decision
based on how important the change is for our product vision. If a Merge request
2017-03-22 15:30:54 -04:00
coach is going to finish the merge request we assign the
2017-03-16 12:40:07 -04:00
~"coach will finish" label.
2015-03-04 14:24:14 -05:00
## Helping others
2018-03-08 09:11:26 -05:00
Please help other GitLab users when you can.
The methods people will use to seek help can be found on the [getting help page][getting-help].
2015-12-14 17:14:23 -05:00
Sign up for the mailing list, answer GitLab questions on StackOverflow or
2016-02-14 13:48:00 -05:00
respond in the IRC channel. You can also sign up on [CodeTriage][codetriage] to help with
2015-12-14 17:14:23 -05:00
the remaining issues on the GitHub issue tracker.
2015-03-04 14:24:14 -05:00
2015-12-01 10:21:53 -05:00
## I want to contribute!
2018-09-17 13:10:09 -04:00
If you want to contribute to GitLab, [issues in the Backlog (Accepting merge requests) ](https://gitlab.com/gitlab-org/gitlab-ce/issues?scope=all&utf8=✓&state=opened&assignee_id=0&milestone_title=Backlog%20(Accepting%20merge%20requests) )
2018-09-15 13:02:31 -04:00
are a great place to start. Issues with a lower weight (1 or 2) are deemed
2018-01-08 11:02:40 -05:00
suitable for beginners. These issues will be of reasonable size and challenge,
for anyone to start contributing to GitLab. If you have any questions or need help visit [Getting Help ](https://about.gitlab.com/getting-help/#discussion ) to
learn how to communicate with GitLab. If you're looking for a Gitter or Slack channel
2018-04-26 13:43:31 -04:00
please consider we favor
2018-01-08 11:02:40 -05:00
[asynchronous communication ](https://about.gitlab.com/handbook/communication/#internal-communication ) over real time communication. Thanks for your contribution!
2015-12-01 10:21:53 -05:00
2018-08-09 06:09:07 -04:00
## Contribution Flow
2016-02-26 06:02:35 -05:00
2018-08-09 06:09:07 -04:00
When contributing to GitLab, your merge request is subject to review by merge request maintainers of a particular specialty.
2017-04-27 12:55:15 -04:00
2018-08-09 06:09:07 -04:00
When you submit code to GitLab, we really want it to get merged, but there will be times when it will not be merged.
2017-04-27 12:55:15 -04:00
2018-08-09 06:09:07 -04:00
When maintainers are reading through a merge request they may request guidance from other maintainers. If merge request maintainers conclude that the code should not be merged, our reasons will be fully disclosed. If it has been decided that the code quality is not up to GitLab’ s standards, the merge request maintainer will refer the author to our docs and code style guides, and provide some guidance.
2017-04-27 12:55:15 -04:00
2018-08-09 06:09:07 -04:00
Sometimes style guides will be followed but the code will lack structural integrity, or the maintainer will have reservations about the code’ s overall quality. When there is a reservation the maintainer will inform the author and provide some guidance. The author may then choose to update the merge request. Once the merge request has been updated and reassigned to the maintainer, they will review the code again. Once the code has been resubmitted any number of times, the maintainer may choose to close the merge request with a summary of why it will not be merged, as well as some guidance. If the merge request is closed the maintainer will be open to discussion as to how to improve the code so it can be approved in the future.
2017-04-27 12:55:15 -04:00
2018-08-09 06:09:07 -04:00
GitLab will do its best to review community contributions as quickly as possible. Specially appointed developers review community contributions daily. You may take a look at the [team page ](https://about.gitlab.com/team/ ) for the merge request coach who specializes in the type of code you have written and mention them in the merge request. For example, if you have written some JavaScript in your code then you should mention the frontend merge request coach. If your code has multiple disciplines you may mention multiple merge request coaches.
2017-04-27 12:55:15 -04:00
2018-08-09 06:09:07 -04:00
GitLab receives a lot of community contributions, so if your code has not been reviewed within 4 days of its initial submission feel free to re-mention the appropriate merge request coach.
2017-04-27 12:55:15 -04:00
2018-08-09 06:09:07 -04:00
When submitting code to GitLab, you may feel that your contribution requires the aid of an external library. If your code includes an external library please provide a link to the library, as well as reasons for including it.
2017-04-27 12:55:15 -04:00
2018-08-09 06:09:07 -04:00
When your code contains more than 500 changes, any major breaking changes, or an external library, `@mention` a maintainer in the merge request. If you are not sure who to mention, the reviewer will add one early in the merge request process.
2017-04-27 12:55:15 -04:00
2018-08-09 06:09:07 -04:00
[core team]: https://about.gitlab.com/core-team/
[team]: https://about.gitlab.com/team/
[getting-help]: https://about.gitlab.com/getting-help/
[codetriage]: http://www.codetriage.com/gitlabhq/gitlabhq
[accepting-mrs-weight]: https://gitlab.com/gitlab-org/gitlab-ce/issues?assignee_id=0& label_name[]=Accepting%20Merge%20Requests& sort=weight_asc
[ce-tracker]: https://gitlab.com/gitlab-org/gitlab-ce/issues
[ee-tracker]: https://gitlab.com/gitlab-org/gitlab-ee/issues
[google-group]: https://groups.google.com/forum/#!forum/gitlabhq
[stackoverflow]: https://stackoverflow.com/questions/tagged/gitlab
[fpl]: https://gitlab.com/gitlab-org/gitlab-ce/issues?label_name=feature+proposal
[accepting-mrs-ce]: https://gitlab.com/gitlab-org/gitlab-ce/issues?label_name=Accepting+Merge+Requests
[accepting-mrs-ee]: https://gitlab.com/gitlab-org/gitlab-ee/issues?label_name=Accepting+Merge+Requests
[gitlab-mr-tracker]: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests
[gdk]: https://gitlab.com/gitlab-org/gitlab-development-kit
[git-squash]: https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits
[closed-merge-requests]: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests?assignee_id=& label_name=& milestone_id=& scope=& sort=& state=closed
[definition-of-done]: http://guide.agilealliance.org/guide/definition-of-done.html
[contributor-covenant]: http://contributor-covenant.org
[rss-source]: https://github.com/bbatsov/ruby-style-guide/blob/master/README.md#source-code-layout
[rss-naming]: https://github.com/bbatsov/ruby-style-guide/blob/master/README.md#naming
[changelog]: doc/development/changelog.md "Generate a changelog entry"
[doc-guidelines]: doc/development/documentation/index.md "Documentation guidelines"
[js-styleguide]: doc/development/fe_guide/style_guide_js.md "JavaScript styleguide"
[scss-styleguide]: doc/development/fe_guide/style_guide_scss.md "SCSS styleguide"
[newlines-styleguide]: doc/development/newlines_styleguide.md "Newlines styleguide"
[UX Guide for GitLab]: http://docs.gitlab.com/ce/development/ux_guide/
[license-finder-doc]: doc/development/licensing.md
[GitLab Inc engineering workflow]: https://about.gitlab.com/handbook/engineering/workflow/#labelling-issues
[polling-etag]: https://docs.gitlab.com/ce/development/polling.html
[testing]: doc/development/testing_guide/index.md
[us-english]: https://en.wikipedia.org/wiki/American_English
2017-04-27 12:55:15 -04:00
2018-08-09 06:09:07 -04:00
## Workflow labels
2017-04-27 12:55:15 -04:00
2018-08-09 06:09:07 -04:00
This [documentation ](doc/development/contributing/issue_workflow.md ) has been moved.
2017-04-27 12:55:15 -04:00
2018-06-19 02:16:13 -04:00
2018-08-09 06:09:07 -04:00
### Type labels
2017-04-27 12:55:15 -04:00
2018-08-09 06:09:07 -04:00
This [documentation ](doc/development/contributing/issue_workflow.md ) has been moved.
2017-04-27 12:55:15 -04:00
2018-08-09 06:09:07 -04:00
### Subject labels
2016-02-26 06:02:35 -05:00
2018-08-09 06:09:07 -04:00
This [documentation ](doc/development/contributing/issue_workflow.md ) has been moved.
2018-06-19 02:16:13 -04:00
2017-01-25 12:21:37 -05:00
2018-08-09 06:09:07 -04:00
### Team labels
2017-01-25 12:21:37 -05:00
2018-08-09 06:09:07 -04:00
This [documentation ](doc/development/contributing/issue_workflow.md ) has been moved.
2017-05-05 10:31:14 -04:00
2017-01-25 12:21:37 -05:00
2018-06-20 11:05:56 -04:00
### Release Scoping labels
2017-01-25 12:21:37 -05:00
2018-08-09 06:09:07 -04:00
This [documentation ](doc/development/contributing/issue_workflow.md ) has been moved.
2018-03-05 09:33:21 -05:00
2017-04-27 12:55:15 -04:00
2018-07-12 01:30:17 -04:00
### Priority labels
2018-04-13 03:41:09 -04:00
2018-08-09 06:09:07 -04:00
This [documentation ](doc/development/contributing/issue_workflow.md ) has been moved.
2018-04-13 03:41:09 -04:00
2018-04-17 02:00:20 -04:00
2018-07-12 01:30:17 -04:00
### Severity labels
2018-02-26 10:54:52 -05:00
2018-08-09 06:09:07 -04:00
This [documentation ](doc/development/contributing/issue_workflow.md ) has been moved.
2018-02-26 10:54:52 -05:00
2018-05-10 04:14:53 -04:00
#### Severity impact guidance
2018-04-17 17:25:29 -04:00
2018-08-09 06:09:07 -04:00
This [documentation ](doc/development/contributing/issue_workflow.md ) has been moved.
2018-07-12 01:30:17 -04:00
2018-04-17 17:25:29 -04:00
2018-06-19 02:16:13 -04:00
### Label for community contributors
2017-04-27 12:55:15 -04:00
2018-08-09 06:09:07 -04:00
This [documentation ](doc/development/contributing/issue_workflow.md ) has been moved.
2017-04-27 12:55:15 -04:00
## Implement design & UI elements
2018-08-09 06:09:07 -04:00
This [documentation ](doc/development/contributing/design.md ) has been moved.
2018-05-11 21:31:29 -04:00
2017-01-25 12:21:37 -05:00
2013-04-12 05:25:25 -04:00
## Issue tracker
2018-08-09 06:09:07 -04:00
This [documentation ](doc/development/contributing/issue_workflow.md ) has been moved.
2015-12-14 14:22:06 -05:00
2017-04-27 12:55:15 -04:00
### Issue triaging
2018-08-09 06:09:07 -04:00
This [documentation ](doc/development/contributing/issue_workflow.md ) has been moved.
2017-04-27 12:55:15 -04:00
2015-12-14 07:06:16 -05:00
### Feature proposals
2018-08-09 06:09:07 -04:00
This [documentation ](doc/development/contributing/issue_workflow.md ) has been moved.
2013-04-12 05:25:25 -04:00
### Issue tracker guidelines
2018-08-09 06:09:07 -04:00
This [documentation ](doc/development/contributing/issue_workflow.md ) has been moved.
2015-12-14 17:14:23 -05:00
2015-12-28 08:02:18 -05:00
### Issue weight
2018-08-09 06:09:07 -04:00
This [documentation ](doc/development/contributing/issue_workflow.md ) has been moved.
2016-01-31 15:56:27 -05:00
2018-08-09 06:09:07 -04:00
### Regression issues
2016-01-31 15:56:27 -05:00
2018-08-09 06:09:07 -04:00
This [documentation ](doc/development/contributing/issue_workflow.md ) has been moved.
2016-01-31 15:56:27 -05:00
2017-07-24 08:20:17 -04:00
### Technical and UX debt
2016-03-17 02:56:23 -04:00
2018-08-09 06:09:07 -04:00
This [documentation ](doc/development/contributing/issue_workflow.md ) has been moved.
2016-03-17 02:56:23 -04:00
2017-02-06 08:37:41 -05:00
### Stewardship
2018-08-09 06:09:07 -04:00
This [documentation ](doc/development/contributing/issue_workflow.md ) has been moved.
2017-02-06 08:37:41 -05:00
2013-12-30 08:27:18 -05:00
## Merge requests
2013-02-27 15:51:46 -05:00
2018-08-09 06:09:07 -04:00
This [documentation ](doc/development/contributing/merge_request_workflow.md ) has been moved.
2014-10-29 19:23:47 -04:00
2015-03-08 19:34:26 -04:00
2013-12-30 08:27:18 -05:00
### Merge request guidelines
2013-03-27 05:15:12 -04:00
2018-08-09 06:09:07 -04:00
This [documentation ](doc/development/contributing/merge_request_workflow.md ) has been moved.
2014-11-24 07:38:02 -05:00
2014-12-24 05:45:03 -05:00
2018-08-09 06:09:07 -04:00
### Contribution acceptance criteria
2018-07-11 04:30:57 -04:00
2018-08-09 06:09:07 -04:00
This [documentation ](doc/development/contributing/merge_request_workflow.md ) has been moved.
2018-07-11 04:30:57 -04:00
2018-08-09 06:09:07 -04:00
## Definition of done
2018-07-11 04:30:57 -04:00
2018-08-22 22:39:56 -04:00
This [documentation ](doc/development/contributing/merge_request_workflow.md ) has been moved.
2018-07-11 04:30:57 -04:00
2018-08-09 06:09:07 -04:00
## Style guides
2018-07-11 04:30:57 -04:00
2018-08-09 06:09:07 -04:00
This [documentation ](doc/development/contributing/design.md ) has been moved.