summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Schilling <rschilling@student.tugraz.at>2018-08-26 10:26:02 +0200
committerRobert Schilling <rschilling@student.tugraz.at>2019-01-31 13:49:49 +0100
commitcc6d45997263fa5110924856fdf04c870a482daf (patch)
treeefb7a2917b850c2e186250b5f2a74e23ecde4c9e
parenteed79986c9f280ea5ccdc4fd08f127640bd581a0 (diff)
downloadgitlab-ce-cc6d45997263fa5110924856fdf04c870a482daf.tar.gz
Add changelog, version information, frozen string literals
-rw-r--r--changelogs/unreleased/api-group-labels.yml5
-rw-r--r--lib/api/group_labels.rb6
-rw-r--r--spec/requests/api/group_labels_spec.rb2
3 files changed, 13 insertions, 0 deletions
diff --git a/changelogs/unreleased/api-group-labels.yml b/changelogs/unreleased/api-group-labels.yml
new file mode 100644
index 00000000000..0df6f15a9b6
--- /dev/null
+++ b/changelogs/unreleased/api-group-labels.yml
@@ -0,0 +1,5 @@
+---
+title: 'API: Add support for group labels'
+merge_request: 21368
+author: Robert Schilling
+type: added
diff --git a/lib/api/group_labels.rb b/lib/api/group_labels.rb
index 8b502b047d3..35c5a6deca5 100644
--- a/lib/api/group_labels.rb
+++ b/lib/api/group_labels.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
module API
class GroupLabels < Grape::API
include PaginationParams
@@ -9,6 +11,7 @@ module API
end
resource :groups, requirements: API::PROJECT_ENDPOINT_REQUIREMENTS do
desc 'Get all labels of the group' do
+ detail 'This feature was added in GitLab 11.3'
success Entities::Label
end
params do
@@ -21,6 +24,7 @@ module API
end
desc 'Create a new label' do
+ detail 'This feature was added in GitLab 11.3'
success Entities::Label
end
params do
@@ -44,6 +48,7 @@ module API
end
desc 'Delete an existing label' do
+ detail 'This feature was added in GitLab 11.3'
success Entities::Label
end
params do
@@ -59,6 +64,7 @@ module API
end
desc 'Update an existing label. At least one optional parameter is required.' do
+ detail 'This feature was added in GitLab 11.3'
success Entities::Label
end
params do
diff --git a/spec/requests/api/group_labels_spec.rb b/spec/requests/api/group_labels_spec.rb
index e0411faa186..3eeeae2aaca 100644
--- a/spec/requests/api/group_labels_spec.rb
+++ b/spec/requests/api/group_labels_spec.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
require 'spec_helper'
describe API::GroupLabels do