diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-12-27 21:09:45 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-12-27 21:09:45 +0300 |
commit | 84f003a4cbf0d57afdaae8cc4f28af549b34ff33 (patch) | |
tree | 057e9740a8f96d8b6c7b19ebaba6ce1c074db045 /scripts/review_apps | |
parent | eedc7b50be0121effa4ea03862c045cf6114c944 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'scripts/review_apps')
-rwxr-xr-x | scripts/review_apps/automated_cleanup.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/review_apps/automated_cleanup.rb b/scripts/review_apps/automated_cleanup.rb index 2d87c18d7d2..f459cb9c0ea 100755 --- a/scripts/review_apps/automated_cleanup.rb +++ b/scripts/review_apps/automated_cleanup.rb @@ -213,7 +213,7 @@ module ReviewApps gitlab.environments(project_path, per_page: DEPLOYMENTS_PER_PAGE, sort: 'desc', states: 'stopped', search: ENVIRONMENT_PREFIX[environment_type]).auto_paginate do |environment| next if skip_environment?(environment: environment, checked_environments: checked_environments, last_updated_threshold: last_updated_threshold, environment_type: environment_type) - yield environment if delete_environment(environment) + yield environment if delete_environment(environment) && block_given? checked_environments << environment.slug end |