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-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-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-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-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-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')
|