summaryrefslogtreecommitdiff
path: root/lib/api
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-06-10 21:45:06 +0200
committerPhil Hughes <me@iamphill.com>2016-06-13 11:09:19 +0100
commit421be01dabb13cd1f45d0118b4e1be9d33baef61 (patch)
treef886bfcadb224a9c8d7cc28ed77ec918e3052f29 /lib/api
parent9281709b41ce5be5637194cda191a6dd76ddd495 (diff)
downloadgitlab-ce-421be01dabb13cd1f45d0118b4e1be9d33baef61.tar.gz
Improve design based on review
Diffstat (limited to 'lib/api')
-rw-r--r--lib/api/builds.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/api/builds.rb b/lib/api/builds.rb
index 704654e9e8c..644e5a2a99d 100644
--- a/lib/api/builds.rb
+++ b/lib/api/builds.rb
@@ -167,10 +167,11 @@ module API
user_can_download_artifacts: can?(current_user, :download_build_artifacts, user_project)
end
- # Keep the artifacts to prevent them to be deleted
+ # Keep the artifacts to prevent them from being deleted
#
# Parameters:
- # id (required) - The ID of a build
+ # id (required) - the id of a project
+ # build_id (required) - The ID of a build
# Example Request:
# POST /projects/:id/builds/:build_id/artifacts/keep
post ':id/builds/:build_id/artifacts/keep' do