Find a file
Rémy Coutable d6bd412be4 Merge branch 'api-dev-can-push' into 'master'
API: Expose 'developers_can_push' for branches

## What does this MR do?

Adds support for the `developers_can_push` flag for the branches API. It also supports creating protected branches with that flag.

## Are there points in the code the reviewer needs to double check?

The API call requires an optional boolean parameter `developers_can_push`. If it is not either `true` or `false`, it should not update the value. I'm not sure if this is the right way to do it.

Right now it always returns `200`. Maybe the `PUT` method should return different status codes depending if it really created or updated a branch.

## What are the relevant issue numbers?

Closes #12735 

## Does this MR meet the acceptance criteria?

- [x] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG) entry added
- [x] [Documentation created/updated](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/doc_styleguide.md)
- [x] API support added
- Tests
  - [x] Added for this feature/bug
  - [x] All builds are passing
- [x] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides)
- [x] Branch has no merge conflicts with `master` (if you do - rebase it please)
- [x] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits)

See merge request !5208
2016-07-19 10:31:56 +00:00
.github Address feedback about wording. 2016-06-09 11:25:47 -06:00
app Squashed - fix encoding issue 2016-07-19 09:59:54 +02:00
bin Use ENABLE_SPRING to use it by default 2016-06-17 16:54:55 +02:00
builds
config Merge branch 'cs-gemojione-3' into 'master' 2016-07-18 23:57:13 +00:00
db Merge branch 'undo-revert-of-4892' into 'master' 2016-07-18 15:31:07 +00:00
doc API: Expose 'developers_can_merge' for branches 2016-07-19 11:12:03 +02:00
docker Update Docker Hub links. 2016-05-07 13:29:24 +09:00
features Revert "Merge branch 'gl-dropdown-issuable-form' into 'master'" 2016-07-15 23:46:29 +00:00
fixtures/emojis Upgrade Gemojione from 2.6.1 to 3.0.1. 2016-07-18 10:40:16 -06:00
generator_templates/active_record/migration Move generator templates to generator_templates/ 2016-05-19 14:58:35 -05:00
lib Merge branch 'api-dev-can-push' into 'master' 2016-07-19 10:31:56 +00:00
log
public optimize png images losslessly using zopflipng 2016-06-29 19:22:15 +08:00
rubocop Added RuboCop cops for checking DB migrations 2016-06-29 14:14:02 +02:00
scripts Cache only apt and ruby from vendor 2016-06-12 23:05:19 +02:00
shared Add .gitkeep 2016-05-17 09:41:47 -05:00
spec Merge branch 'api-dev-can-push' into 'master' 2016-07-19 10:31:56 +00:00
tmp Remove tmp/.gitkeep 2015-10-04 13:49:48 +00:00
vendor Remove duplicate templates that are lowercase 2016-07-06 16:54:20 +02:00
.csscomb.json Fixes last remaining lints and enables scss-lint test for GitLab CI. 2016-03-22 15:01:31 -06:00
.flayignore Add flay: tool to find duplicate code 2015-11-11 16:29:00 +01:00
.foreman
.gitattributes
.gitignore Use absolute paths wherever is possible for .gitignore entries. 2016-05-29 16:55:25 -05:00
.gitlab-ci.yml Merge branch 'use-git-depth' into 'master' 2016-06-28 13:46:16 +00:00
.pkgr.yml
.rspec
.rubocop.yml Disable two cops as recommended. 2016-07-13 12:12:47 -06:00
.rubocop_todo.yml Disable all cops with offenses. 2016-07-13 12:39:14 -06:00
.ruby-version revert back to ruby 2.1 - use 2.1.8 2016-02-19 17:19:57 +01:00
.scss-lint.yml Merge branch 'scss-url-linters' into 'master' 2016-04-28 19:59:53 +00:00
.simplecov
.vagrant_enabled Cache project build count. Closes #18032 2016-06-02 11:10:57 -04:00
CHANGELOG Merge branch 'api-dev-can-push' into 'master' 2016-07-19 10:31:56 +00:00
config.ru Increase Unicorn memory limits to 300-350 2016-01-20 11:52:01 +01:00
CONTRIBUTING.md Cleanup feature proposal template 2016-07-13 23:54:38 +00:00
doc_styleguide.md Move doc_styleguide in the development directory 2016-01-12 11:57:42 +01:00
docker-compose.yml Update docker guide and add docker-compose.yml 2015-09-30 14:24:39 +02:00
Gemfile Merge branch 'cs-gemojione-3' into 'master' 2016-07-18 23:57:13 +00:00
Gemfile.lock Merge branch 'cs-gemojione-3' into 'master' 2016-07-18 23:57:13 +00:00
GITLAB_SHELL_VERSION Bump GITLAB_SHELL_VERSION to 3.2.0 2016-07-05 19:44:40 -05:00
GITLAB_WORKHORSE_VERSION Bump gitlab-workhorse version for !5094 2016-07-12 13:24:51 +08:00
LICENSE Update copyright notice to 2016 [ci skip] 2016-01-03 18:28:52 +05:30
MAINTENANCE.md Update MAINTENANCE.md with our latest policy 2016-07-19 09:05:56 +03:00
PROCESS.md Merge branch 'patch-1' into 'master' 2016-04-26 14:45:58 +00:00
Procfile Remove duplication in Procfile 2016-01-14 15:08:22 +01:00
Rakefile Load knapsack in Rakefile only when is bundled 2016-06-07 20:02:03 +02:00
README.md Remove Coveralls and Semaphore badges. [ci skip] 2016-05-31 09:16:04 -06:00
VERSION Time for 8.10.0-pre 2016-06-22 18:14:53 +03:00

GitLab

build status Code Climate

Canonical source

The source of GitLab Community Edition is hosted on GitLab.com and there are mirrors to make contributing as easy as possible.

Open source software to collaborate on code

To see how GitLab looks please see the features page on our website.

  • Manage Git repositories with fine grained access controls that keep your code secure
  • Perform code reviews and enhance collaboration with merge requests
  • Each project can also have an issue tracker and a wiki
  • Used by more than 100,000 organizations, GitLab is the most popular solution to manage Git repositories on-premises
  • Completely free and open source (MIT Expat license)
  • Powered by Ruby on Rails

Hiring

We're hiring developers, support people, and production engineers all the time, please see our jobs page.

Editions

There are two editions of GitLab:

  • GitLab Community Edition (CE) is available freely under the MIT Expat license.
  • GitLab Enterprise Edition (EE) includes extra features that are more useful for organizations with more than 100 users. To use EE and get official support please become a subscriber.

Website

On about.gitlab.com you can find more information about:

Requirements

Please see the requirements documentation for system requirements and more information about the supported operating systems.

Installation

The recommended way to install GitLab is with the Omnibus packages on our package server. Compared to an installation from source, this is faster and less error prone. Just select your operating system, download the respective package (Debian or RPM) and install it using the system's package manager.

There are various other options to install GitLab, please refer to the installation page on the GitLab website for more information.

You can access a new installation with the login root and password 5iveL!fe, after login you are required to set a unique password.

Install a development environment

To work on GitLab itself, we recommend setting up your development environment with the GitLab Development Kit. If you do not use the GitLab Development Kit you need to install and setup all the dependencies yourself, this is a lot of work and error prone. One small thing you also have to do when installing it yourself is to copy the example development unicorn configuration file:

cp config/unicorn.rb.example.development config/unicorn.rb

Instructions on how to start GitLab and how to run the tests can be found in the development section of the GitLab Development Kit.

Software stack

GitLab is a Ruby on Rails application that runs on the following software:

  • Ubuntu/Debian/CentOS/RHEL
  • Ruby (MRI) 2.1
  • Git 2.7.4+
  • Redis 2.8+
  • MySQL or PostgreSQL

For more information please see the architecture documentation.

Third-party applications

There are a lot of third-party applications integrating with GitLab. These include GUI Git clients, mobile applications and API wrappers for various languages.

GitLab release cycle

For more information about the release process see the release documentation.

Upgrading

For upgrading information please see our update page.

Documentation

All documentation can be found on doc.gitlab.com/ce/.

Getting help

Please see Getting help for GitLab on our website for the many options to get help.

Is it any good?

Yes

Is it awesome?

Thanks for asking this question Joshua. These people seem to like it.