Skip to content

Commit

Permalink
fix some typos
Browse files Browse the repository at this point in the history
  • Loading branch information
ilia-medvedev-codefresh committed Jun 2, 2024
1 parent 32bec9d commit 28710ae
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion codefresh/resource_account_gitops_settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func resourceAccountGitopsSettings() *schema.Resource {
},
"shared_config_repository": {
Type: schema.TypeString,
Description: "Shared config repository url. Must be a valid git url which contains `.git`. May also includ path and branch references",
Description: "Shared config repository url. Must be a valid git url which contains `.git`. May also include path and branch references",
ValidateFunc: validation.StringMatch(regexp.MustCompile(`^(https?:\/\/)(\S+)(.git)(\S*)$`), "must be a valid git url and must contain .git For example https://github.com/owner/repo.git or https://github.com/owner/repo.git/some/path?ref=branch-name"),
Required: true,
},
Expand Down
6 changes: 3 additions & 3 deletions docs/resources/account_gitops_settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Codefresh account gitops setting - such as git provider, API URL for the git pro
```hcl
resource "codefresh_account_gitops_settings" "gitops-settings" {
git_provider = "GITHUB"
shared_config_repository = "https://github.com/example-org/codefresh-internal-shared-config.git"
shared_config_repository = "https://github.com/example-org/codefresh-internal-shared-config.git?ref=main"
}
```
```hcl
Expand All @@ -30,7 +30,7 @@ resource "codefresh_account_gitops_settings" "gitops-settings" {
### Required

- `git_provider` (String) Git provider name - currently supported values are: GITHUB ,GERRIT ,GITLAB ,BITBUCKET ,BITBUCKET_SERVER
- `shared_config_repository` (String) Shared config repository url. Must be a valid git url which contains `.git`. May also includ path and branch references
- `shared_config_repository` (String) Shared config repository url. Must be a valid git url which contains `.git`. May also include path and branch references

### Optional

Expand All @@ -42,7 +42,7 @@ resource "codefresh_account_gitops_settings" "gitops-settings" {
- `name` (String) Account name for active account

[!WARNING]
Once internal config repository is cloned successfully by one or more runtimes it can no longer be changed and all attempted updated will fail.
Once internal config repository is cloned successfully by one or more runtimes it can no longer be changed and all attempted updates will fail.
If you need to change the repository please contact Codefresh support.

## Import
Expand Down
4 changes: 2 additions & 2 deletions templates/resources/account_gitops_settings.md.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ description: |-
```hcl
resource "codefresh_account_gitops_settings" "gitops-settings" {
git_provider = "GITHUB"
shared_config_repository = "https://github.com/example-org/codefresh-internal-shared-config.git"
shared_config_repository = "https://github.com/example-org/codefresh-internal-shared-config.git?ref=main"
}
```
```hcl
Expand All @@ -27,7 +27,7 @@ resource "codefresh_account_gitops_settings" "gitops-settings" {
{{ .SchemaMarkdown | trimspace }}

[!WARNING]
Once internal config repository is cloned successfully by one or more runtimes it can no longer be changed and all attempted updated will fail.
Once internal config repository is cloned successfully by one or more runtimes it can no longer be changed and all attempted updates will fail.
If you need to change the repository please contact Codefresh support.

## Import
Expand Down

0 comments on commit 28710ae

Please sign in to comment.