From 40254b9ace2a74a3c9f1cc51a1b1d5e3e78c1ae9 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Fri, 17 Jan 2020 21:08:29 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- lib/api/deployments.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/api/deployments.rb') diff --git a/lib/api/deployments.rb b/lib/api/deployments.rb index 62bda64896b..487d4e37a56 100644 --- a/lib/api/deployments.rb +++ b/lib/api/deployments.rb @@ -21,6 +21,14 @@ module API optional :sort, type: String, values: DeploymentsFinder::ALLOWED_SORT_DIRECTIONS, default: DeploymentsFinder::DEFAULT_SORT_DIRECTION, desc: 'Sort by asc (ascending) or desc (descending)' optional :updated_after, type: DateTime, desc: 'Return deployments updated after the specified date' optional :updated_before, type: DateTime, desc: 'Return deployments updated before the specified date' + optional :environment, + type: String, + desc: 'The name of the environment to filter deployments by' + + optional :status, + type: String, + values: Deployment.statuses.keys, + desc: 'The status to filter deployments by' end get ':id/deployments' do -- cgit v1.2.1