diff --git a/app/graphql/resolvers/merge_requests_resolver.rb b/app/graphql/resolvers/merge_requests_resolver.rb index a0af588ee090c4f51b10729af6ff3b277bf0636f..c7b7e8835bd76d659664b740660cd9106f4b3402 100644 --- a/app/graphql/resolvers/merge_requests_resolver.rb +++ b/app/graphql/resolvers/merge_requests_resolver.rb @@ -162,10 +162,14 @@ def self.accept_reviewer argument :author_username, GraphQL::Types::String, required: false, description: 'Filters merge requests to exclude any that are authored by the given user.' - argument :labels, [GraphQL::Types::String], + argument :label_name, [GraphQL::Types::String], required: false, - as: :label_name, description: 'Filters merge requests to exclude any that have the labels provided in the given array.' + argument :labels, [GraphQL::Types::String], + as: :label_name, + required: false, + description: 'Filters merge requests to exclude any that have the labels provided in the given array.', + deprecated: { reason: 'Use `labelName`', milestone: '17.7' } argument :milestone_title, GraphQL::Types::String, required: false, description: 'Filters merge requests to those not in the given milestone.' diff --git a/doc/api/graphql/reference/index.md b/doc/api/graphql/reference/index.md index 3f34169b1d11ed892e42fae291f5176340c8a662..3403fd7c221e1140ae458495837365fa20bb3d15 100644 --- a/doc/api/graphql/reference/index.md +++ b/doc/api/graphql/reference/index.md @@ -44065,7 +44065,8 @@ Defines which user roles, users, or groups can merge into a protected branch. | `approvedBy` | [`[String!]`](#string) | Filters merge requests to exclude any that are approved by usernames in the given array. | | `assigneeUsernames` | [`[String!]`](#string) | Filters merge requests to exclude any that are assigned to the usernames in the given array. | | `authorUsername` | [`String`](#string) | Filters merge requests to exclude any that are authored by the given user. | -| `labels` | [`[String!]`](#string) | Filters merge requests to exclude any that have the labels provided in the given array. | +| `labelName` | [`[String!]`](#string) | Filters merge requests to exclude any that have the labels provided in the given array. | +| `labels` **{warning-solid}** | [`[String!]`](#string) | **Deprecated:** Use `labelName`. Deprecated in GitLab 17.7. | | `milestoneTitle` | [`String`](#string) | Filters merge requests to those not in the given milestone. | | `myReactionEmoji` | [`String`](#string) | Filters merge requests to those without the given reaction from the authenticated user. | | `releaseTag` | [`String`](#string) | Filters merge requests to those without the given release tag. |