Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api/release/links.rb')
-rw-r--r--lib/api/release/links.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/api/release/links.rb b/lib/api/release/links.rb
index f72230c084c..07c27f39539 100644
--- a/lib/api/release/links.rb
+++ b/lib/api/release/links.rb
@@ -40,6 +40,7 @@ module API
requires :name, type: String, desc: 'The name of the link'
requires :url, type: String, desc: 'The URL of the link'
optional :filepath, type: String, desc: 'The filepath of the link'
+ optional :link_type, type: String, desc: 'The link type'
end
post 'links' do
authorize! :create_release, release
@@ -75,6 +76,7 @@ module API
optional :name, type: String, desc: 'The name of the link'
optional :url, type: String, desc: 'The URL of the link'
optional :filepath, type: String, desc: 'The filepath of the link'
+ optional :link_type, type: String, desc: 'The link type'
at_least_one_of :name, :url
end
put do