Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
8c24e78b
Commit
8c24e78b
authored
May 24, 2018
by
Mark Chao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wording
parent
dc28ef01
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lib/api/protected_branches.rb
lib/api/protected_branches.rb
+2
-2
No files found.
lib/api/protected_branches.rb
View file @
8c24e78b
...
...
@@ -41,10 +41,10 @@ module API
requires
:name
,
type:
String
,
desc:
'The name of the protected branch'
optional
:push_access_level
,
type:
Integer
,
values:
ProtectedRefAccess
::
ALLOWED_ACCESS_LEVELS
,
desc:
'Access levels allowed to push (defaults: `40`, ma
st
er access level)'
desc:
'Access levels allowed to push (defaults: `40`, ma
intain
er access level)'
optional
:merge_access_level
,
type:
Integer
,
values:
ProtectedRefAccess
::
ALLOWED_ACCESS_LEVELS
,
desc:
'Access levels allowed to merge (defaults: `40`, ma
st
er access level)'
desc:
'Access levels allowed to merge (defaults: `40`, ma
intain
er access level)'
end
post
':id/protected_branches'
do
protected_branch
=
user_project
.
protected_branches
.
find_by
(
name:
params
[
:name
])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment