Skip to content

Commit 3cfe6ec

Browse files
author
GitHub Actions
committed
Apply suggestions
1 parent 4412885 commit 3cfe6ec

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

modules/importing-repositories/procedure-bulk-import-scaffolder-template.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ For example, for `https://github.com/redhat-developer/rhdh-plugins`, the `organi
3232
+
3333
For example, for `https://github.com/redhat-developer/rhdh-plugins`, the `gitProviderHost` is `github.com`. You can use this parameter to write `Git-provider-agnostic` templates.
3434

35-
To use parameters in a Scaffolder template:
35+
To use these parameters in a Scaffolder template:
3636
[source,yaml]
3737
----
3838
parameters:
39-
- title: Repository Details
39+
- title: Repository details
4040
required:
4141
- repoUrl
4242
- branchName
@@ -50,7 +50,7 @@ parameters:
5050
description: `github.com?owner=Org&repo=repoName` | `gitlab.com?owner=Org&repo=repoName`
5151
organization:
5252
type: string
53-
title: Owner of the Repository
53+
title: Owner of the repository
5454
name:
5555
type: string
5656
title: Name of the repository

modules/importing-repositories/procedure-data-handoff-and-custom-workflow-design.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66

77
When you configure the Bulk Import plugin by setting the importAPI field to `scaffolder`, the Bulk Import Backend ensures all necessary context is passed directly to the Scaffolder API.
88

9-
Your control over input data:: The Orchestrator workflow receives the input data required to automate processing for every selected repository. The payload includes, at minimum, the complete list of repository URLs and the user identity.
9+
Your control over input data:: The Orchestrator workflow receives the input data required to automate processing for every selected repository. For each repository in that list, the bulk import launches the scaffolder template once and passes the data for that single repository to the template run.
1010

1111
As an administrator, you can define the Scaffolder template workflow and structure the workflow to do the following:
1212

13-
Consume the input:: Accept the repositories array as primary input.
13+
Consume the input:: The Scaffolder template receives the repository data as template parameters for the current execution.
1414

15-
Iterate and process:: Loop through the list, executing the custom logic for example, creating the `catalog-info.yaml` if needed, then running compliance checks, then registering with the catalog.
15+
Iterate and process:: The orchestrator handles iterating through the repository list and launches the template for each repository. Within a single template run, implement the custom logic for that single repository. For example, create the `catalog-info.yaml` if needed, run compliance checks, then register with the catalog.
1616

1717
Manage lifecycle:: The Scaffolder template workflow owns the entire import lifecycle for the repository list, providing a single point of management and traceability.

0 commit comments

Comments
 (0)