2022-07-23 23:45:48 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Admin
|
|
|
|
module ApplicationSettings
|
|
|
|
module SettingsHelper
|
|
|
|
def inactive_projects_deletion_data(settings)
|
|
|
|
{
|
|
|
|
delete_inactive_projects: settings.delete_inactive_projects.to_s,
|
|
|
|
inactive_projects_delete_after_months: settings.inactive_projects_delete_after_months,
|
|
|
|
inactive_projects_min_size_mb: settings.inactive_projects_min_size_mb,
|
|
|
|
inactive_projects_send_warning_email_after_months: settings.inactive_projects_send_warning_email_after_months
|
|
|
|
}
|
|
|
|
end
|
2023-06-20 00:43:36 +05:30
|
|
|
|
|
|
|
def project_missing_pipeline_yaml?(project)
|
|
|
|
project.repository&.gitlab_ci_yml.blank?
|
|
|
|
end
|
2022-07-23 23:45:48 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|