2021-09-13 09:11:26 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module BulkImports
|
|
|
|
module Projects
|
|
|
|
class Stage < ::BulkImports::Stage
|
|
|
|
private
|
|
|
|
|
|
|
|
def config
|
|
|
|
@config ||= {
|
2021-10-06 21:12:16 +00:00
|
|
|
project: {
|
2021-09-13 09:11:26 +00:00
|
|
|
pipeline: BulkImports::Projects::Pipelines::ProjectPipeline,
|
|
|
|
stage: 0
|
|
|
|
},
|
2021-10-06 21:12:16 +00:00
|
|
|
repository: {
|
|
|
|
pipeline: BulkImports::Projects::Pipelines::RepositoryPipeline,
|
|
|
|
stage: 1
|
|
|
|
},
|
2021-12-11 00:15:10 +00:00
|
|
|
project_attributes: {
|
|
|
|
pipeline: BulkImports::Projects::Pipelines::ProjectAttributesPipeline,
|
|
|
|
stage: 1
|
|
|
|
},
|
2021-09-27 18:12:38 +00:00
|
|
|
labels: {
|
|
|
|
pipeline: BulkImports::Common::Pipelines::LabelsPipeline,
|
2021-10-06 21:12:16 +00:00
|
|
|
stage: 2
|
2021-09-27 18:12:38 +00:00
|
|
|
},
|
2021-11-09 12:12:15 +00:00
|
|
|
milestones: {
|
|
|
|
pipeline: BulkImports::Common::Pipelines::MilestonesPipeline,
|
|
|
|
stage: 2
|
|
|
|
},
|
2021-11-24 15:14:19 +00:00
|
|
|
badges: {
|
|
|
|
pipeline: BulkImports::Common::Pipelines::BadgesPipeline,
|
|
|
|
stage: 2
|
|
|
|
},
|
2021-09-30 18:11:31 +00:00
|
|
|
issues: {
|
|
|
|
pipeline: BulkImports::Projects::Pipelines::IssuesPipeline,
|
2021-10-06 21:12:16 +00:00
|
|
|
stage: 3
|
2021-09-30 18:11:31 +00:00
|
|
|
},
|
2021-11-22 21:10:35 +00:00
|
|
|
snippets: {
|
|
|
|
pipeline: BulkImports::Projects::Pipelines::SnippetsPipeline,
|
|
|
|
stage: 3
|
|
|
|
},
|
2021-12-08 21:10:18 +00:00
|
|
|
snippets_repository: {
|
|
|
|
pipeline: BulkImports::Projects::Pipelines::SnippetsRepositoryPipeline,
|
|
|
|
stage: 4
|
|
|
|
},
|
2021-10-14 21:12:54 +00:00
|
|
|
boards: {
|
|
|
|
pipeline: BulkImports::Common::Pipelines::BoardsPipeline,
|
|
|
|
stage: 4
|
|
|
|
},
|
2021-10-28 18:14:18 +00:00
|
|
|
merge_requests: {
|
|
|
|
pipeline: BulkImports::Projects::Pipelines::MergeRequestsPipeline,
|
|
|
|
stage: 4
|
|
|
|
},
|
2021-11-02 18:12:13 +00:00
|
|
|
external_pull_requests: {
|
|
|
|
pipeline: BulkImports::Projects::Pipelines::ExternalPullRequestsPipeline,
|
|
|
|
stage: 4
|
|
|
|
},
|
2021-11-10 21:09:47 +00:00
|
|
|
protected_branches: {
|
|
|
|
pipeline: BulkImports::Projects::Pipelines::ProtectedBranchesPipeline,
|
|
|
|
stage: 4
|
|
|
|
},
|
2021-11-19 12:12:41 +00:00
|
|
|
ci_pipelines: {
|
|
|
|
pipeline: BulkImports::Projects::Pipelines::CiPipelinesPipeline,
|
|
|
|
stage: 4
|
|
|
|
},
|
2021-11-23 18:12:49 +00:00
|
|
|
project_feature: {
|
|
|
|
pipeline: BulkImports::Projects::Pipelines::ProjectFeaturePipeline,
|
|
|
|
stage: 4
|
|
|
|
},
|
2021-12-07 12:10:33 +00:00
|
|
|
container_expiration_policy: {
|
|
|
|
pipeline: BulkImports::Projects::Pipelines::ContainerExpirationPolicyPipeline,
|
|
|
|
stage: 4
|
|
|
|
},
|
|
|
|
service_desk_setting: {
|
|
|
|
pipeline: BulkImports::Projects::Pipelines::ServiceDeskSettingPipeline,
|
|
|
|
stage: 4
|
|
|
|
},
|
2021-11-09 09:10:06 +00:00
|
|
|
wiki: {
|
|
|
|
pipeline: BulkImports::Common::Pipelines::WikiPipeline,
|
|
|
|
stage: 5
|
|
|
|
},
|
2021-10-19 18:13:24 +00:00
|
|
|
uploads: {
|
|
|
|
pipeline: BulkImports::Common::Pipelines::UploadsPipeline,
|
|
|
|
stage: 5
|
|
|
|
},
|
2021-12-01 09:10:25 +00:00
|
|
|
auto_devops: {
|
|
|
|
pipeline: BulkImports::Projects::Pipelines::AutoDevopsPipeline,
|
|
|
|
stage: 5
|
|
|
|
},
|
2021-12-15 00:13:13 +00:00
|
|
|
pipeline_schedules: {
|
|
|
|
pipeline: BulkImports::Projects::Pipelines::PipelineSchedulesPipeline,
|
|
|
|
stage: 5
|
|
|
|
},
|
2021-09-13 09:11:26 +00:00
|
|
|
finisher: {
|
|
|
|
pipeline: BulkImports::Common::Pipelines::EntityFinisher,
|
2021-10-19 18:13:24 +00:00
|
|
|
stage: 6
|
2021-09-13 09:11:26 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
::BulkImports::Projects::Stage.prepend_mod_with('BulkImports::Projects::Stage')
|