diff options
author | Timothy Andrew <mail@timothyandrew.net> | 2016-07-25 20:14:53 +0530 |
---|---|---|
committer | Timothy Andrew <mail@timothyandrew.net> | 2016-07-29 15:20:39 +0530 |
commit | 01d190a84ad9b8e4a40cbdec8a55946bac38ab76 (patch) | |
tree | 74b06499ba066a8e6d4b9c0bf13b6a5166501980 /lib/api/api.rb | |
parent | 88fd401d599f94bc4ea572cd47afa7d12c484db2 (diff) | |
download | gitlab-ce-01d190a84ad9b8e4a40cbdec8a55946bac38ab76.tar.gz |
Have the `branches` API work with the new protected branches data model.
1. The new data model moves from `developers_can_{push,merge}` to
`allowed_to_{push,merge}`.
2. The API interface has not been changed. It still accepts
`developers_can_push` and `developers_can_merge` as options. These
attributes are inferred from the new data model.
3. Modify the protected branch create/update services to translate from
the API interface to our current data model.
Diffstat (limited to 'lib/api/api.rb')
0 files changed, 0 insertions, 0 deletions