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
0227e98d
Commit
0227e98d
authored
Aug 24, 2016
by
Patricio Cano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added CHANGELOG, documentation, and API functionality
parent
9d8fbcc0
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
3 deletions
+19
-3
CHANGELOG
CHANGELOG
+1
-0
doc/api/projects.md
doc/api/projects.md
+3
-0
doc/workflow/project_features.md
doc/workflow/project_features.md
+8
-0
lib/api/entities.rb
lib/api/entities.rb
+1
-1
lib/api/projects.rb
lib/api/projects.rb
+6
-2
No files found.
CHANGELOG
View file @
0227e98d
...
@@ -25,6 +25,7 @@ v 8.12.0 (unreleased)
...
@@ -25,6 +25,7 @@ v 8.12.0 (unreleased)
- Add horizontal scrolling to all sub-navs on mobile viewports (ClemMakesApps)
- Add horizontal scrolling to all sub-navs on mobile viewports (ClemMakesApps)
- Fix markdown help references (ClemMakesApps)
- Fix markdown help references (ClemMakesApps)
- Add last commit time to repo view (ClemMakesApps)
- Add last commit time to repo view (ClemMakesApps)
- Added project specific enable/disable setting for LFS !5997
- Added tests for diff notes
- Added tests for diff notes
- Add a button to download latest successful artifacts for branches and tags !5142
- Add a button to download latest successful artifacts for branches and tags !5142
- Add delimiter to project stars and forks count (ClemMakesApps)
- Add delimiter to project stars and forks count (ClemMakesApps)
...
...
doc/api/projects.md
View file @
0227e98d
...
@@ -452,6 +452,7 @@ Parameters:
...
@@ -452,6 +452,7 @@ Parameters:
-
`import_url`
(optional)
-
`import_url`
(optional)
-
`public_builds`
(optional)
-
`public_builds`
(optional)
-
`only_allow_merge_if_build_succeeds`
(optional)
-
`only_allow_merge_if_build_succeeds`
(optional)
-
`enable_lfs`
(optional)
### Create project for user
### Create project for user
...
@@ -478,6 +479,7 @@ Parameters:
...
@@ -478,6 +479,7 @@ Parameters:
-
`import_url`
(optional)
-
`import_url`
(optional)
-
`public_builds`
(optional)
-
`public_builds`
(optional)
-
`only_allow_merge_if_build_succeeds`
(optional)
-
`only_allow_merge_if_build_succeeds`
(optional)
-
`enable_lfs`
(optional)
### Edit project
### Edit project
...
@@ -505,6 +507,7 @@ Parameters:
...
@@ -505,6 +507,7 @@ Parameters:
-
`visibility_level`
(optional)
-
`visibility_level`
(optional)
-
`public_builds`
(optional)
-
`public_builds`
(optional)
-
`only_allow_merge_if_build_succeeds`
(optional)
-
`only_allow_merge_if_build_succeeds`
(optional)
-
`enable_lfs`
(optional)
On success, method returns 200 with the updated project. If parameters are
On success, method returns 200 with the updated project. If parameters are
invalid, 400 is returned.
invalid, 400 is returned.
...
...
doc/workflow/project_features.md
View file @
0227e98d
...
@@ -33,3 +33,11 @@ Snippets are little bits of code or text.
...
@@ -33,3 +33,11 @@ Snippets are little bits of code or text.
This is a nice place to put code or text that is used semi-regularly within the project, but does not belong in source control.
This is a nice place to put code or text that is used semi-regularly within the project, but does not belong in source control.
For example, a specific config file that is used by > the team that is only valid for the people that work on the code.
For example, a specific config file that is used by > the team that is only valid for the people that work on the code.
## LFS
>**Note:** Project specific LFS setting was added on 8.12 and is available only to admins.
Git Large File Storage allows you to easily manage large binary files with Git.
With this setting admins can keep better control of which projects are allowed
to use LFS, thus allowing for better storage usage control.
lib/api/entities.rb
View file @
0227e98d
...
@@ -78,7 +78,7 @@ module API
...
@@ -78,7 +78,7 @@ module API
expose
:path
,
:path_with_namespace
expose
:path
,
:path_with_namespace
expose
:issues_enabled
,
:merge_requests_enabled
,
:wiki_enabled
,
:builds_enabled
,
:snippets_enabled
,
:container_registry_enabled
expose
:issues_enabled
,
:merge_requests_enabled
,
:wiki_enabled
,
:builds_enabled
,
:snippets_enabled
,
:container_registry_enabled
expose
:created_at
,
:last_activity_at
expose
:created_at
,
:last_activity_at
expose
:shared_runners_enabled
expose
:shared_runners_enabled
,
:enable_lfs
expose
:creator_id
expose
:creator_id
expose
:namespace
expose
:namespace
expose
:forked_from_project
,
using:
Entities
::
BasicProjectDetails
,
if:
lambda
{
|
project
,
options
|
project
.
forked?
}
expose
:forked_from_project
,
using:
Entities
::
BasicProjectDetails
,
if:
lambda
{
|
project
,
options
|
project
.
forked?
}
...
...
lib/api/projects.rb
View file @
0227e98d
...
@@ -105,6 +105,7 @@ module API
...
@@ -105,6 +105,7 @@ module API
# visibility_level (optional) - 0 by default
# visibility_level (optional) - 0 by default
# import_url (optional)
# import_url (optional)
# public_builds (optional)
# public_builds (optional)
# enable_lfs (optional)
# Example Request
# Example Request
# POST /projects
# POST /projects
post
do
post
do
...
@@ -124,7 +125,8 @@ module API
...
@@ -124,7 +125,8 @@ module API
:visibility_level
,
:visibility_level
,
:import_url
,
:import_url
,
:public_builds
,
:public_builds
,
:only_allow_merge_if_build_succeeds
]
:only_allow_merge_if_build_succeeds
,
:enable_lfs
]
attrs
=
map_public_to_visibility_level
(
attrs
)
attrs
=
map_public_to_visibility_level
(
attrs
)
@project
=
::
Projects
::
CreateService
.
new
(
current_user
,
attrs
).
execute
@project
=
::
Projects
::
CreateService
.
new
(
current_user
,
attrs
).
execute
if
@project
.
saved?
if
@project
.
saved?
...
@@ -220,6 +222,7 @@ module API
...
@@ -220,6 +222,7 @@ module API
# public (optional) - if true same as setting visibility_level = 20
# public (optional) - if true same as setting visibility_level = 20
# visibility_level (optional) - visibility level of a project
# visibility_level (optional) - visibility level of a project
# public_builds (optional)
# public_builds (optional)
# enable_lfs (optional)
# Example Request
# Example Request
# PUT /projects/:id
# PUT /projects/:id
put
':id'
do
put
':id'
do
...
@@ -237,7 +240,8 @@ module API
...
@@ -237,7 +240,8 @@ module API
:public
,
:public
,
:visibility_level
,
:visibility_level
,
:public_builds
,
:public_builds
,
:only_allow_merge_if_build_succeeds
]
:only_allow_merge_if_build_succeeds
,
:enable_lfs
]
attrs
=
map_public_to_visibility_level
(
attrs
)
attrs
=
map_public_to_visibility_level
(
attrs
)
authorize_admin_project
authorize_admin_project
authorize!
:rename_project
,
user_project
if
attrs
[
:name
].
present?
authorize!
:rename_project
,
user_project
if
attrs
[
:name
].
present?
...
...
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