Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
51e0ce26
Commit
51e0ce26
authored
Oct 01, 2021
by
Albert Salim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix variable name
parent
02ad2733
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
scripts/review_apps/automated_cleanup.rb
scripts/review_apps/automated_cleanup.rb
+1
-1
No files found.
scripts/review_apps/automated_cleanup.rb
View file @
51e0ce26
...
...
@@ -194,7 +194,7 @@ class AutomatedCleanup
def
delete_stopped_environments
(
environment_type
:,
checked_environments
:,
last_updated_threshold
:)
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:
delete
_threshold
,
environment_type:
environment_type
)
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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment