From cc6d45997263fa5110924856fdf04c870a482daf Mon Sep 17 00:00:00 2001 From: Robert Schilling Date: Sun, 26 Aug 2018 10:26:02 +0200 Subject: [PATCH] Add changelog, version information, frozen string literals --- changelogs/unreleased/api-group-labels.yml | 5 +++++ lib/api/group_labels.rb | 6 ++++++ spec/requests/api/group_labels_spec.rb | 2 ++ 3 files changed, 13 insertions(+) create mode 100644 changelogs/unreleased/api-group-labels.yml 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 -- GitLab