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
Léo-Paul Géneau
gitlab-ce
Commits
1cd1bab3
Commit
1cd1bab3
authored
Jun 16, 2017
by
David Turner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add printing_merge_request_link_enabled to API
parent
ad521bde
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
0 deletions
+10
-0
changelogs/unreleased/dt-printing-to-api.yml
changelogs/unreleased/dt-printing-to-api.yml
+4
-0
doc/api/projects.md
doc/api/projects.md
+3
-0
lib/api/entities.rb
lib/api/entities.rb
+1
-0
lib/api/projects.rb
lib/api/projects.rb
+2
-0
No files found.
changelogs/unreleased/dt-printing-to-api.yml
0 → 100644
View file @
1cd1bab3
---
title
:
Added printing_merge_requst_link_enabled to the API
merge_request
:
author
:
David Turner <dturner@twosigma.com>
doc/api/projects.md
View file @
1cd1bab3
...
...
@@ -261,6 +261,7 @@ Parameters:
],
"only_allow_merge_if_pipeline_succeeds"
:
false
,
"only_allow_merge_if_all_discussions_are_resolved"
:
false
,
"printing_merge_requests_link_enabled"
:
true
,
"request_access_enabled"
:
false
,
"statistics"
:
{
"commit_count"
:
37
,
...
...
@@ -344,6 +345,7 @@ Parameters:
|
`request_access_enabled`
| boolean | no | Allow users to request member access |
|
`tag_list`
| array | no | The list of tags for a project; put array of tags, that should be finally assigned to a project |
|
`avatar`
| mixed | no | Image file for avatar of the project |
|
`printing_merge_request_link_enabled`
| boolean | no | Show link to create/view merge request when pushing from the command line |
### Create project for user
...
...
@@ -379,6 +381,7 @@ Parameters:
|
`request_access_enabled`
| boolean | no | Allow users to request member access |
|
`tag_list`
| array | no | The list of tags for a project; put array of tags, that should be finally assigned to a project |
|
`avatar`
| mixed | no | Image file for avatar of the project |
|
`printing_merge_request_link_enabled`
| boolean | no | Show link to create/view merge request when pushing from the command line |
### Edit project
...
...
lib/api/entities.rb
View file @
1cd1bab3
...
...
@@ -115,6 +115,7 @@ module API
expose
:only_allow_merge_if_pipeline_succeeds
expose
:request_access_enabled
expose
:only_allow_merge_if_all_discussions_are_resolved
expose
:printing_merge_request_link_enabled
expose
:statistics
,
using:
'API::Entities::ProjectStatistics'
,
if: :statistics
end
...
...
lib/api/projects.rb
View file @
1cd1bab3
...
...
@@ -23,6 +23,7 @@ module API
optional
:only_allow_merge_if_all_discussions_are_resolved
,
type:
Boolean
,
desc:
'Only allow to merge if all discussions are resolved'
optional
:tag_list
,
type:
Array
[
String
],
desc:
'The list of tags for a project'
optional
:avatar
,
type:
File
,
desc:
'Avatar image for project'
optional
:printing_merge_request_link_enabled
,
type:
Boolean
,
desc:
'Show link to create/view merge request when pushing from the command line'
end
params
:optional_params
do
...
...
@@ -218,6 +219,7 @@ module API
:only_allow_merge_if_all_discussions_are_resolved
,
:only_allow_merge_if_pipeline_succeeds
,
:path
,
:printing_merge_request_link_enabled
,
:public_builds
,
:request_access_enabled
,
:shared_runners_enabled
,
...
...
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