gitlab-org--gitlab-foss/spec
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
..
config
controllers Don't blow up in tree view on empty repo 2016-07-18 14:06:21 +01:00
factories Store when and yaml variables in builds table 2016-07-16 20:25:30 +02:00
features Merge branch '19820-safer-diffs' into 'master' 2016-07-18 21:28:24 +00:00
finders Avoid describe-ing symbols in specs 2016-07-12 10:27:58 -05:00
fixtures don't expect " encoding anymore 2016-07-14 10:08:16 -07:00
helpers Collapsed diffs lines/size don't accumulate to overflow diffs. 2016-07-18 14:43:28 -06:00
initializers Enable Style/EmptyLines cop, remove redundant ones 2016-07-01 21:56:17 +02:00
javascripts Merge branch '17341-firefox-u2f' into 'master' 2016-07-15 20:07:51 +00:00
lib Squashed - fix encoding issue 2016-07-19 09:59:54 +02:00
mailers Represent DiffRefs as proper class instead of tuple array 2016-07-06 18:50:58 -04:00
models Merge branch 'issue_13343' into 'master' 2016-07-18 21:38:22 +00:00
requests API: Expose 'developers_can_merge' for branches 2016-07-19 11:12:03 +02:00
routing Fix failing tests. 2016-07-11 16:11:33 -06:00
services Merge branch 'caironoleto/gitlab-ce-cn-issue-19747' 2016-07-18 15:44:58 -06:00
support Collapsed diffs lines/size don't accumulate to overflow diffs. 2016-07-18 14:43:28 -06:00
tasks/gitlab Enable Style/EmptyLines cop, remove redundant ones 2016-07-01 21:56:17 +02:00
views add modification to commit title test 2016-07-18 15:03:27 +02:00
workers Refresh branch cache after git gc 2016-07-13 06:49:58 -07:00
factories_spec.rb
rails_helper.rb
spec_helper.rb We're not using them (and look at the typo) 2016-07-12 22:17:00 +08:00
teaspoon_env.rb