From 27ed5b5d0ed101c29fdd9796eb57df2f5b6b949c Mon Sep 17 00:00:00 2001 From: Chmouel Boudjnah Date: Thu, 23 Nov 2023 08:04:00 +0100 Subject: [PATCH] Fixing tkn pac create repo message in README It didn't reflect the actual message that was being printed. Add a small spelling fix as well to the message --- README.md | 2 +- docs/content/docs/install/bitbucket_cloud.md | 2 +- docs/content/docs/install/getting-started.md | 2 +- docs/content/docs/install/github_webhook.md | 2 +- docs/content/docs/install/gitlab.md | 2 +- pkg/cmd/tknpac/generate/generate.go | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 37a4d9e8d..3a401b0f0 100644 --- a/README.md +++ b/README.md @@ -89,7 +89,7 @@ $ tkn pac create repository ✓ Repository youruser-pac-demo has been created in pac-demo namespace ℹ Directory .tekton has been created. ✓ A basic template has been created in .tekton/pipelinerun.yaml, feel free to customize it. -ℹ You can test your pipeline by pushing generated template to your git repository +ℹ You can test your pipeline by pushing the generated template to your git repository ``` The above command would create a `Repository` CRD in your `demo` namespace which is used to determine where the diff --git a/docs/content/docs/install/bitbucket_cloud.md b/docs/content/docs/install/bitbucket_cloud.md index 7d1e0c969..175f5157d 100644 --- a/docs/content/docs/install/bitbucket_cloud.md +++ b/docs/content/docs/install/bitbucket_cloud.md @@ -65,7 +65,7 @@ $ tkn pac create repo 🔑 Repository CR workspace-repo has been updated with webhook secret in the repo-pipelines namespace ℹ Directory .tekton has been created. ✓ A basic template has been created in /home/Go/src/bitbucket/repo/.tekton/pipelinerun.yaml, feel free to customize it. -ℹ You can test your pipeline by pushing generated template to your git repository +ℹ You can test your pipeline by pushing the generated template to your git repository ``` diff --git a/docs/content/docs/install/getting-started.md b/docs/content/docs/install/getting-started.md index 8efb6e775..e2192bc52 100644 --- a/docs/content/docs/install/getting-started.md +++ b/docs/content/docs/install/getting-started.md @@ -219,7 +219,7 @@ your cluster and create a directory called `.tekton` with a file named ℹ Directory .tekton has been created. ✓ We have detected your repository using the programming language Go. ✓ A basic template has been created in /tmp/pac-demo/.tekton/pipelinerun.yaml, feel free to customize it. -ℹ You can test your pipeline by pushing generated template to your git repository +ℹ You can test your pipeline by pushing the generated template to your git repository ``` Note that the `tkn pac create repository` command detected that the repository diff --git a/docs/content/docs/install/github_webhook.md b/docs/content/docs/install/github_webhook.md index ed8ebe0ee..23e7a3934 100644 --- a/docs/content/docs/install/github_webhook.md +++ b/docs/content/docs/install/github_webhook.md @@ -107,7 +107,7 @@ $ tkn pac create repo ℹ Directory .tekton has been created. ✓ We have detected your repository using the programming language Go. ✓ A basic template has been created in /home/Go/src/github.com/owner/repo/.tekton/pipelinerun.yaml, feel free to customize it. -ℹ You can test your pipeline by pushing generated template to your git repository +ℹ You can test your pipeline by pushing the generated template to your git repository ``` diff --git a/docs/content/docs/install/gitlab.md b/docs/content/docs/install/gitlab.md index 132cf9266..72d84de73 100644 --- a/docs/content/docs/install/gitlab.md +++ b/docs/content/docs/install/gitlab.md @@ -58,7 +58,7 @@ $ tkn pac create repo 🔑 Repository CR repositories-project has been updated with webhook secret in the project-pipelines namespace ℹ Directory .tekton has been created. ✓ A basic template has been created in /home/Go/src/gitlab.com/repositories/project/.tekton/pipelinerun.yaml, feel free to customize it. -ℹ You can test your pipeline by pushing generated template to your git repository +ℹ You can test your pipeline by pushing the generated template to your git repository ``` ### Create a `Repository` and configure webhook manually diff --git a/pkg/cmd/tknpac/generate/generate.go b/pkg/cmd/tknpac/generate/generate.go index 64693b7a9..6d3c4feae 100644 --- a/pkg/cmd/tknpac/generate/generate.go +++ b/pkg/cmd/tknpac/generate/generate.go @@ -248,7 +248,7 @@ func (o *Opts) samplePipeline(recreateTemplate bool) error { cs.SuccessIcon(), cs.Bold(fpath), ) - fmt.Fprintf(o.IOStreams.Out, "%s You can test your pipeline by pushing generated template to your git repository\n", cs.InfoIcon()) + fmt.Fprintf(o.IOStreams.Out, "%s You can test your pipeline by pushing the generated template to your git repository\n", cs.InfoIcon()) return nil }