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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
46fd485c
Commit
46fd485c
authored
Feb 19, 2016
by
Kamil Trzcinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix API implementation
parent
55701d9c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
lib/api/builds.rb
lib/api/builds.rb
+1
-3
lib/api/entities.rb
lib/api/entities.rb
+1
-1
No files found.
lib/api/builds.rb
View file @
46fd485c
...
...
@@ -79,9 +79,7 @@ module API
return
redirect_to
build
.
artifacts_file
.
url
end
unless
artifacts_file
.
exists?
not_found!
end
return
not_found!
unless
artifacts_file
.
exists?
present_file!
(
artifacts_file
.
path
,
artifacts_file
.
filename
)
end
...
...
lib/api/entities.rb
View file @
46fd485c
...
...
@@ -406,7 +406,7 @@ module API
repo_obj
.
artifacts_download_url
end
end
expose
:artifacts_file
,
using:
BuildArtifactFile
,
if:
lambda
{
|
build
,
opts
|
build
.
artifacts?
}
expose
:artifacts_file
,
using:
BuildArtifactFile
,
if:
->
(
build
,
opts
)
{
build
.
artifacts?
}
expose
:commit
,
with:
RepoCommit
do
|
repo_obj
,
_options
|
if
repo_obj
.
respond_to?
(
:commit
)
repo_obj
.
commit
.
commit_data
...
...
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