Contribute to GitLab
Thank you for your interest in contributing to GitLab. This guide details how to contribute to GitLab in a way that is easy for everyone.
For a first-time step-by-step guide to the contribution process, see our Contributing to GitLab page.
Looking for something to work on? See the How to contribute section for more information.
GitLab comes in two flavors:
- GitLab Community Edition (CE), our free and open source edition.
- GitLab Enterprise Edition (EE), which is our commercial edition.
Throughout this guide you will see references to CE and EE for abbreviation.
To get an overview of GitLab community membership, including those that would review or merge your contributions, visit the community roles page.
GitLab Inc engineers should refer to the engineering workflow document.
Security vulnerability disclosure
Report suspected security vulnerabilities by following the disclosure process on the GitLab.com website.
WARNING: Do not create publicly viewable issues for suspected security vulnerabilities.
Code of conduct
We want to create a welcoming environment for everyone who is interested in contributing. Visit our Code of Conduct page to learn more about our commitment to an open and welcoming environment.
Closing policy for issues and merge requests
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.
Treat our volunteers with courtesy and respect, it will go a long way towards getting your issue resolved.
Issues and merge requests should be in English and contain appropriate language for audiences of all ages.
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.
- Close the merge request.
We make this decision based on how important the change is for our product vision. If a merge
request coach is going to finish the merge request, we assign the
~coach will finish label.
When a team member picks up a community contribution, we credit the original author by adding a changelog entry crediting the author and optionally include the original author on at least one of the commits within the MR.
Closing policy for inactive bugs
GitLab values the time spent by contributors on reporting bugs. However, if a bug remains inactive for a very long period, it will qualify for auto-closure. Please refer to the auto-close inactive bugs section in our handbook to understand the complete workflow.
Help other GitLab users when you can. The methods people use to seek help can be found on the getting help page.
Sign up for the mailing list, answer GitLab questions on StackOverflow or respond in the IRC channel.
How to contribute
If you would like to contribute to GitLab:
- Issues with the
~Seeking community contributionslabel are a great place to start.
- Optimizing our tests is another great opportunity to contribute. You can use RSpec profiling statistics to identify slowest tests. These tests are good candidates for improving and checking if any of best practices could speed them up.
- Consult the Contribution Flow section to learn the process.
If you have any questions or need help visit Getting Help to learn how to communicate with GitLab. We have a Gitter channel for contributors, however we favor asynchronous communication over real time communication.
Thanks for your contribution!
GitLab Development Kit
The GitLab Development Kit (GDK) helps contributors run a local GitLab instance with all the required dependencies. It can be used to test changes to GitLab and related projects before raising a Merge Request.
For more information, see the
The general flow of contributing to GitLab is:
- Create a fork of GitLab. In some cases, you will want to set up the GitLab Development Kit to develop against your fork.
- Make your changes in your fork.
- When you're ready, create a new merge request.
- In the merge request's description:
- Ensure you provide complete and accurate information.
- Review the provided checklist.
- Once you're ready, mark your MR as ready for review with
- This will add the
~"workflow::ready for review"label, and then automatically assign a merge request coach as reviewer.
- If you know a relevant reviewer (for example, someone that was involved a related issue), you can also
assign them directly with
@gitlab-bot ready @username.
- This will add the
When you submit code to GitLab, we really want it to get merged! However, we always review submissions carefully, and this takes time. Code submissions will usually be reviewed by two domain experts before being merged:
After review, the reviewer could ask the author to update the merge request. In that case, the reviewer would set the
~"workflow::in dev" label.
Once the merge request has been updated and set as ready for review again (for example, with
@gitlab-bot ready), they will review the code again.
This process may repeat any number of times before merge, to help make the contribution the best it can be.
Lastly, keep the following in mind when submitting merge requests:
- When reviewers are reading through a merge request they may request guidance from other reviewers.
- If the code quality is found to not meet GitLab standards, the merge request reviewer will provide guidance and refer the author to our:
- Sometimes style guides will be followed but the code will lack structural integrity, or the reviewer will have reservations about the code's overall quality. When there is a reservation, the reviewer will inform the author and provide some guidance.
- Though GitLab generally allows anyone to indicate approval of merge requests, the maintainer may require approvals from certain reviewers before merging a merge request.
- Sometimes a maintainer may choose to close a merge request. They will fully disclose why it will not be merged, as well as some guidance. The maintainers will be open to discussion about how to change the code so it can be approved and merged in the future.
Getting attention on your merge request
GitLab will do its best to review community contributions as quickly as possible. Specially appointed developers review community contributions daily. Look at the team page 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 front-end code, you should mention the frontend merge request coach. If your code has multiple disciplines, you may mention multiple merge request coaches.
GitLab receives a lot of community contributions. If your code has not been reviewed within two
working days of its initial submission, you can ask for help with
Addition of external libraries
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.
Mention a maintainer in merge requests that contain:
- More than 500 changes.
- Any major breaking changes.
- External libraries.
If you are not sure who to mention, the reviewer will do this for you early in the merge request process.
A "breaking change" is any change that requires users to make a corresponding change to their code, settings, or workflow. "Users" might be humans, API clients, or even code classes that "use" another class. Examples of breaking changes include:
- Removing a user-facing feature without a replacement/workaround.
- Changing the definition of an existing API (by doing things like re-naming query parameters or changing routes).
- Removing a public method from a code class.
A breaking change can be considered "major" if it affects many users, or represents a significant change in behavior.
This documentation outlines the current issue workflow:
- Issue tracker guidelines
- Issue triaging
- Feature proposals
- Issue weight
- Regression issues
- Technical and UX debt
- Technical debt in follow-up issues
Merge requests workflow
This documentation outlines the current merge request process.
This documentation outlines the current style guidelines.
Implement design & UI elements
This design documentation outlines the current process for implementing design and UI elements.
For information on how to contribute documentation, see GitLab documentation guidelines.
Getting an Enterprise Edition License
If you need a license for contributing to an EE-feature, see relevant information.