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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
d3ce7c36
Commit
d3ce7c36
authored
Dec 09, 2019
by
Fabio Huser
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Expose suggestion commit message via project API
parent
1166c7c6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
lib/api/entities.rb
lib/api/entities.rb
+1
-0
lib/api/helpers/projects_helpers.rb
lib/api/helpers/projects_helpers.rb
+2
-0
No files found.
lib/api/entities.rb
View file @
d3ce7c36
...
@@ -335,6 +335,7 @@ module API
...
@@ -335,6 +335,7 @@ module API
expose
:remove_source_branch_after_merge
expose
:remove_source_branch_after_merge
expose
:printing_merge_request_link_enabled
expose
:printing_merge_request_link_enabled
expose
:merge_method
expose
:merge_method
expose
:suggestion_commit_message
expose
:statistics
,
using:
'API::Entities::ProjectStatistics'
,
if:
->
(
project
,
options
)
{
expose
:statistics
,
using:
'API::Entities::ProjectStatistics'
,
if:
->
(
project
,
options
)
{
options
[
:statistics
]
&&
Ability
.
allowed?
(
options
[
:current_user
],
:read_statistics
,
project
)
options
[
:statistics
]
&&
Ability
.
allowed?
(
options
[
:current_user
],
:read_statistics
,
project
)
}
}
...
...
lib/api/helpers/projects_helpers.rb
View file @
d3ce7c36
...
@@ -46,6 +46,7 @@ module API
...
@@ -46,6 +46,7 @@ module API
optional
:avatar
,
type:
File
,
desc:
'Avatar image for project'
# rubocop:disable Scalability/FileUploads
optional
:avatar
,
type:
File
,
desc:
'Avatar image for project'
# rubocop:disable Scalability/FileUploads
optional
:printing_merge_request_link_enabled
,
type:
Boolean
,
desc:
'Show link to create/view merge request when pushing from the command line'
optional
:printing_merge_request_link_enabled
,
type:
Boolean
,
desc:
'Show link to create/view merge request when pushing from the command line'
optional
:merge_method
,
type:
String
,
values:
%w(ff rebase_merge merge)
,
desc:
'The merge method used when merging merge requests'
optional
:merge_method
,
type:
String
,
values:
%w(ff rebase_merge merge)
,
desc:
'The merge method used when merging merge requests'
optional
:suggestion_commit_message
,
type:
String
,
desc:
'The commit message used to apply merge request suggestions'
optional
:initialize_with_readme
,
type:
Boolean
,
desc:
"Initialize a project with a README.md"
optional
:initialize_with_readme
,
type:
Boolean
,
desc:
"Initialize a project with a README.md"
optional
:ci_default_git_depth
,
type:
Integer
,
desc:
'Default number of revisions for shallow cloning'
optional
:ci_default_git_depth
,
type:
Integer
,
desc:
'Default number of revisions for shallow cloning'
optional
:auto_devops_enabled
,
type:
Boolean
,
desc:
'Flag indication if Auto DevOps is enabled'
optional
:auto_devops_enabled
,
type:
Boolean
,
desc:
'Flag indication if Auto DevOps is enabled'
...
@@ -119,6 +120,7 @@ module API
...
@@ -119,6 +120,7 @@ module API
:visibility
,
:visibility
,
:wiki_access_level
,
:wiki_access_level
,
:avatar
,
:avatar
,
:suggestion_commit_message
,
# TODO: remove in API v5, replaced by *_access_level
# TODO: remove in API v5, replaced by *_access_level
:issues_enabled
,
:issues_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