diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2024-01-18 21:08:43 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2024-01-18 21:08:43 +0300 |
commit | 055b4c04d5cef7029625c08619df4f3bcdccc6c2 (patch) | |
tree | 4a363915e4878c17f5a6ffef6010a4bf0e3b8b76 /qa/Rakefile | |
parent | 85f1126ea6f09296e4e5106d7d8319e93aeedf3c (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'qa/Rakefile')
-rw-r--r-- | qa/Rakefile | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/qa/Rakefile b/qa/Rakefile index 9fc1ff2c0cf..d8b5d6d08d6 100644 --- a/qa/Rakefile +++ b/qa/Rakefile @@ -5,8 +5,9 @@ require_relative "qa" Dir['tasks/*.rake'].each { |file| load file } desc "Deletes subgroups within a provided group" -task :delete_subgroups do - QA::Tools::DeleteSubgroups.new.run +task :delete_subgroups, [:delete_before] do |_, args| + args.with_defaults(delete_before: (Date.today - 3).to_s) + QA::Tools::DeleteSubgroups.new(delete_before: args[:delete_before]).run end desc "Initialize GitLab with an access token" @@ -50,8 +51,9 @@ task :delete_test_ssh_keys, [:title_portion, :delete_before, :dry_run] do |_, ar end desc "Deletes projects directly under the provided group" -task :delete_projects do - QA::Tools::DeleteProjects.new.run +task :delete_projects, [:delete_before] do |_, args| + args.with_defaults(delete_before: (Date.today - 3).to_s) + QA::Tools::DeleteProjects.new(delete_before: args[:delete_before]).run end desc "Deletes test users" |