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
2d42ff3d
Commit
2d42ff3d
authored
Sep 03, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
a97535b0
5256f011
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
lib/api/release/links.rb
lib/api/release/links.rb
+2
-2
lib/api/releases.rb
lib/api/releases.rb
+4
-4
No files found.
lib/api/release/links.rb
View file @
2d42ff3d
...
...
@@ -5,7 +5,7 @@ module API
class
Links
<
Grape
::
API
include
PaginationParams
RELEASE_ENDPOINT_REQUIREMETS
=
API
::
NAMESPACE_OR_PROJECT_REQUIREMENTS
RELEASE_ENDPOINT_REQUIREME
N
TS
=
API
::
NAMESPACE_OR_PROJECT_REQUIREMENTS
.
merge
(
tag_name:
API
::
NO_SLASH_URL_PART_REGEX
)
before
{
authorize!
:read_release
,
user_project
}
...
...
@@ -17,7 +17,7 @@ module API
params
do
requires
:tag_name
,
type:
String
,
desc:
'The name of the tag'
,
as: :tag
end
resource
'releases/:tag_name'
,
requirements:
RELEASE_ENDPOINT_REQUIREMETS
do
resource
'releases/:tag_name'
,
requirements:
RELEASE_ENDPOINT_REQUIREME
N
TS
do
resource
:assets
do
desc
'Get a list of links of a release'
do
detail
'This feature was introduced in GitLab 11.7.'
...
...
lib/api/releases.rb
View file @
2d42ff3d
...
...
@@ -4,7 +4,7 @@ module API
class
Releases
<
Grape
::
API
include
PaginationParams
RELEASE_ENDPOINT_REQUIREMETS
=
API
::
NAMESPACE_OR_PROJECT_REQUIREMENTS
RELEASE_ENDPOINT_REQUIREME
N
TS
=
API
::
NAMESPACE_OR_PROJECT_REQUIREMENTS
.
merge
(
tag_name:
API
::
NO_SLASH_URL_PART_REGEX
)
before
{
authorize_read_releases!
}
...
...
@@ -33,7 +33,7 @@ module API
params
do
requires
:tag_name
,
type:
String
,
desc:
'The name of the tag'
,
as: :tag
end
get
':id/releases/:tag_name'
,
requirements:
RELEASE_ENDPOINT_REQUIREMETS
do
get
':id/releases/:tag_name'
,
requirements:
RELEASE_ENDPOINT_REQUIREME
N
TS
do
authorize_download_code!
present
release
,
with:
Entities
::
Release
,
current_user:
current_user
...
...
@@ -82,7 +82,7 @@ module API
optional
:released_at
,
type:
DateTime
,
desc:
'The date when the release will be/was ready.'
optional
:milestone
,
type:
String
,
desc:
'The title of the related milestone'
end
put
':id/releases/:tag_name'
,
requirements:
RELEASE_ENDPOINT_REQUIREMETS
do
put
':id/releases/:tag_name'
,
requirements:
RELEASE_ENDPOINT_REQUIREME
N
TS
do
authorize_update_release!
result
=
::
Releases
::
UpdateService
...
...
@@ -103,7 +103,7 @@ module API
params
do
requires
:tag_name
,
type:
String
,
desc:
'The name of the tag'
,
as: :tag
end
delete
':id/releases/:tag_name'
,
requirements:
RELEASE_ENDPOINT_REQUIREMETS
do
delete
':id/releases/:tag_name'
,
requirements:
RELEASE_ENDPOINT_REQUIREME
N
TS
do
authorize_destroy_release!
result
=
::
Releases
::
DestroyService
...
...
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