diff --git a/plugins/scaffolder-backend-module-azure/src/actions/azure.examples.ts b/plugins/scaffolder-backend-module-azure/src/actions/azure.examples.ts index 48b57c410d..97f272d1e7 100644 --- a/plugins/scaffolder-backend-module-azure/src/actions/azure.examples.ts +++ b/plugins/scaffolder-backend-module-azure/src/actions/azure.examples.ts @@ -20,7 +20,7 @@ import yaml from 'yaml'; export const examples: TemplateExample[] = [ { description: - 'Initializes a git repository of the content in the workspace, and publishes it to Azure.', + 'Initializes a git repository of the content in the workspace, and publishes it to Azure with the default confiiguration.', example: yaml.stringify({ steps: [ { @@ -36,7 +36,7 @@ export const examples: TemplateExample[] = [ }), }, { - description: 'Add a description.', + description: 'Initializes an Azure repository with a description.', example: yaml.stringify({ steps: [ { @@ -53,7 +53,8 @@ export const examples: TemplateExample[] = [ }), }, { - description: 'Change the default branch.', + description: + 'Initializes a Azure repository with a default Branch, if not set defaults to master', example: yaml.stringify({ steps: [ { @@ -63,7 +64,6 @@ export const examples: TemplateExample[] = [ input: { repoUrl: 'dev.azure.com?organization=organization&owner=project&repo=repo', - description: 'Initialize a git repository', defaultBranch: 'main', }, }, diff --git a/plugins/scaffolder-backend-module-bitbucket-cloud/src/actions/bitbucketCloud.examples.ts b/plugins/scaffolder-backend-module-bitbucket-cloud/src/actions/bitbucketCloud.examples.ts index 2d48c99949..ab61a32eec 100644 --- a/plugins/scaffolder-backend-module-bitbucket-cloud/src/actions/bitbucketCloud.examples.ts +++ b/plugins/scaffolder-backend-module-bitbucket-cloud/src/actions/bitbucketCloud.examples.ts @@ -20,7 +20,7 @@ import yaml from 'yaml'; export const examples: TemplateExample[] = [ { description: - 'Initializes a Bitbucket Cloud repository of contents in workspace and publish it to Bitbucket Cloud with default configuration.', + 'Initializes a git repository of the content in the workspace, and publishes it to Bitbucket Cloud with the default confiiguration.', example: yaml.stringify({ steps: [ { diff --git a/plugins/scaffolder-backend-module-bitbucket/src/actions/bitbucket.examples.ts b/plugins/scaffolder-backend-module-bitbucket/src/actions/bitbucket.examples.ts index 6667afcc9e..061718fb8c 100644 --- a/plugins/scaffolder-backend-module-bitbucket/src/actions/bitbucket.examples.ts +++ b/plugins/scaffolder-backend-module-bitbucket/src/actions/bitbucket.examples.ts @@ -20,7 +20,7 @@ import yaml from 'yaml'; export const examples: TemplateExample[] = [ { description: - 'Initializes a git repository of contents in workspace and publish it to Bitbucket with default configuration.', + 'Initializes a git repository of the content in the workspace, and publishes it to Bitbucket with the default confiiguration.', example: yaml.stringify({ steps: [ { @@ -36,7 +36,7 @@ export const examples: TemplateExample[] = [ }), }, { - description: 'Add a description.', + description: 'Initializes a Bitbucket repository with a description.', example: yaml.stringify({ steps: [ { @@ -53,7 +53,8 @@ export const examples: TemplateExample[] = [ }), }, { - description: 'Change visibility of the repository.', + description: + 'Initializes a Bitbucket repository with public repo visibility, if not set defaults to private', example: yaml.stringify({ steps: [ { @@ -63,7 +64,6 @@ export const examples: TemplateExample[] = [ input: { repoUrl: 'bitbucket.org?repo=repo&workspace=workspace&project=project', - description: 'Initialize a git repository', repoVisibility: 'public', }, }, @@ -71,7 +71,8 @@ export const examples: TemplateExample[] = [ }), }, { - description: 'Set the default branch.', + description: + 'Initializes a Bitbucket repository with a default Branch, if not set defaults to master', example: yaml.stringify({ steps: [ { @@ -81,8 +82,6 @@ export const examples: TemplateExample[] = [ input: { repoUrl: 'bitbucket.org?repo=repo&workspace=workspace&project=project', - description: 'Initialize a git repository', - repoVisibility: 'public', defaultBranch: 'main', }, }, @@ -90,7 +89,8 @@ export const examples: TemplateExample[] = [ }), }, { - description: 'Specify a source path within the workspace.', + description: + 'Path within the workspace that will be used as the repository root. If omitted, the entire workspace will be published as the repository', example: yaml.stringify({ steps: [ { @@ -100,9 +100,6 @@ export const examples: TemplateExample[] = [ input: { repoUrl: 'bitbucket.org?repo=repo&workspace=workspace&project=project', - description: 'Initialize a git repository', - repoVisibility: 'public', - defaultBranch: 'main', sourcePath: './repoRoot', }, }, @@ -110,7 +107,7 @@ export const examples: TemplateExample[] = [ }), }, { - description: 'Enable LFS for the repository.', + description: 'Initializes a Bitbucket repository with LFS enabled', example: yaml.stringify({ steps: [ { @@ -119,10 +116,6 @@ export const examples: TemplateExample[] = [ name: 'Publish to Bitbucket', input: { repoUrl: 'hosted.bitbucket.com?project=project&repo=repo', - description: 'Initialize a git repository', - repoVisibility: 'public', - defaultBranch: 'main', - sourcePath: './repoRoot', enableLFS: true, }, }, @@ -130,7 +123,8 @@ export const examples: TemplateExample[] = [ }), }, { - description: 'Provide an authentication token for Bitbucket.', + description: + 'Initializes a Bitbucket repository with a custom authentication token', example: yaml.stringify({ steps: [ { @@ -140,9 +134,6 @@ export const examples: TemplateExample[] = [ input: { repoUrl: 'bitbucket.org?repo=repo&workspace=workspace&project=project', - description: 'Initialize a git repository', - repoVisibility: 'public', - defaultBranch: 'main', token: 'your-auth-token', }, }, @@ -150,7 +141,8 @@ export const examples: TemplateExample[] = [ }), }, { - description: 'Set a custom commit message.', + description: + 'Initializes a Bitbucket repository with an initial commit message, if not set defaults to `initial commit`', example: yaml.stringify({ steps: [ { @@ -160,10 +152,6 @@ export const examples: TemplateExample[] = [ input: { repoUrl: 'bitbucket.org?repo=repo&workspace=workspace&project=project', - description: 'Initialize a git repository', - repoVisibility: 'public', - defaultBranch: 'main', - token: 'your-auth-token', gitCommitMessage: 'Initial commit with custom message', }, }, @@ -171,7 +159,26 @@ export const examples: TemplateExample[] = [ }), }, { - description: 'Set a custom author name and email for the commit.', + description: 'Initializes a Bitbucket repository with a custom author', + example: yaml.stringify({ + steps: [ + { + id: 'publish', + action: 'publish:bitbucket', + name: 'Publish to Bitbucket', + input: { + repoUrl: + 'bitbucket.org?repo=repo&workspace=workspace&project=project', + gitAuthorName: 'Your Name', + gitAuthorEmail: 'your.email@example.com', + }, + }, + ], + }), + }, + { + description: + 'Initializes a Bitbucket repository with all proporties being set', example: yaml.stringify({ steps: [ { diff --git a/plugins/scaffolder-backend-module-gitea/src/actions/gitea.examples.ts b/plugins/scaffolder-backend-module-gitea/src/actions/gitea.examples.ts index 748a869205..4339de606e 100644 --- a/plugins/scaffolder-backend-module-gitea/src/actions/gitea.examples.ts +++ b/plugins/scaffolder-backend-module-gitea/src/actions/gitea.examples.ts @@ -20,7 +20,7 @@ import yaml from 'yaml'; export const examples: TemplateExample[] = [ { description: - 'Initializes a Gitea repository using the content of the workspace and publish it to Gitea with default configuration.', + 'Initializes a git repository of the content in the workspace, and publishes it to Gitea with the default confiiguration.', example: yaml.stringify({ steps: [ { @@ -69,7 +69,7 @@ export const examples: TemplateExample[] = [ }, { description: - 'Initializes a Gitea repository with an initial commit message, if not set defaults to initial commit', + 'Initializes a Gitea repository with an initial commit message, if not set defaults to `initial commit`', example: yaml.stringify({ steps: [ { diff --git a/plugins/scaffolder-backend-module-gitlab/src/actions/gitlab.examples.ts b/plugins/scaffolder-backend-module-gitlab/src/actions/gitlab.examples.ts index b20fcf52e9..f08521b943 100644 --- a/plugins/scaffolder-backend-module-gitlab/src/actions/gitlab.examples.ts +++ b/plugins/scaffolder-backend-module-gitlab/src/actions/gitlab.examples.ts @@ -20,7 +20,7 @@ import yaml from 'yaml'; export const examples: TemplateExample[] = [ { description: - 'Initializes a git repository of the content in the workspace, and publishes it to GitLab.', + 'Initializes a git repository of the content in the workspace, and publishes it to Gitlab with the default confiiguration.', example: yaml.stringify({ steps: [ { @@ -52,7 +52,7 @@ export const examples: TemplateExample[] = [ }, { description: - 'Sets the commit message on the repository. The default value is `initial commit`.', + 'Initializes a Gitlab repository with an initial commit message, if not set defaults to `initial commit`.', example: yaml.stringify({ steps: [ { @@ -69,7 +69,7 @@ export const examples: TemplateExample[] = [ }), }, { - description: 'Initializes a git repository with additional settings.', + description: 'Initializes a Gitlab repository with aditional settings.', example: yaml.stringify({ steps: [ { @@ -88,7 +88,7 @@ export const examples: TemplateExample[] = [ }), }, { - description: 'Initializes a git repository with branches settings', + description: 'Initializes a Gitlab repository with branch settings.', example: yaml.stringify({ steps: [ { @@ -115,7 +115,7 @@ export const examples: TemplateExample[] = [ }), }, { - description: 'Initializes a git repository with environment variables', + description: 'Initializes a Gitlab repository with environment variables.', example: yaml.stringify({ steps: [ {