Skip to content

Commit

Permalink
docs: Update docs and regenerate (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
craigsloggett authored May 15, 2024
1 parent e798b8d commit 95cefdd
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 36 deletions.
36 changes: 18 additions & 18 deletions docs/resources/repository.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,28 @@ This resource allows you to create and manage repositories within your GitHub or

```terraform
resource "github_repository" "example" {
name = "testing-repository"
name = "testing-repository"
allow_auto_merge = true
allow_merge_commit = true
allow_rebase_merge = false
allow_squash_merge = true
auto_init = true
delete_branch_on_merge = true
description = "This is a description."
homepage = "https://github.com"
private = true
gitignore_template = "Terraform"
has_discussions = true
has_issues = true
has_projects = true
has_wiki = true
has_discussions = true
auto_init = true
gitignore_template = "Terraform"
homepage = "https://github.com"
is_template = true
license_template = "mpl-2.0"
allow_squash_merge = true
allow_merge_commit = true
allow_rebase_merge = false
allow_auto_merge = true
delete_branch_on_merge = true
squash_merge_commit_title = "PR_TITLE"
squash_merge_commit_message = "COMMIT_MESSAGES"
merge_commit_title = "PR_TITLE"
merge_commit_message = "PR_BODY"
is_template = true
merge_commit_title = "PR_TITLE"
private = true
squash_merge_commit_message = "COMMIT_MESSAGES"
squash_merge_commit_title = "PR_TITLE"
}
```
<!-- schema generated by tfplugindocs -->
Expand Down Expand Up @@ -73,9 +74,8 @@ resource "github_repository" "example" {

## Import

Import is supported using the following syntax:

```shell
# Repositories can be imported using the numerical ID of the repository.
# Repositories can be imported using the numerical
# GitHub ID of the repository.
terraform import github_repository.test 123456789
```
3 changes: 2 additions & 1 deletion examples/resources/github_repository/import.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# Repositories can be imported using the numerical ID of the repository.
# Repositories can be imported using the numerical
# GitHub ID of the repository.
terraform import github_repository.test 123456789
31 changes: 16 additions & 15 deletions examples/resources/github_repository/resource.tf
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
resource "github_repository" "example" {
name = "testing-repository"
name = "testing-repository"

allow_auto_merge = true
allow_merge_commit = true
allow_rebase_merge = false
allow_squash_merge = true
auto_init = true
delete_branch_on_merge = true
description = "This is a description."
homepage = "https://github.com"
private = true
gitignore_template = "Terraform"
has_discussions = true
has_issues = true
has_projects = true
has_wiki = true
has_discussions = true
auto_init = true
gitignore_template = "Terraform"
homepage = "https://github.com"
is_template = true
license_template = "mpl-2.0"
allow_squash_merge = true
allow_merge_commit = true
allow_rebase_merge = false
allow_auto_merge = true
delete_branch_on_merge = true
squash_merge_commit_title = "PR_TITLE"
squash_merge_commit_message = "COMMIT_MESSAGES"
merge_commit_title = "PR_TITLE"
merge_commit_message = "PR_BODY"
is_template = true
merge_commit_title = "PR_TITLE"
private = true
squash_merge_commit_message = "COMMIT_MESSAGES"
squash_merge_commit_title = "PR_TITLE"
}
2 changes: 0 additions & 2 deletions templates/resources.md.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,5 @@ description: |-
{{ if .HasImport -}}
## Import

Import is supported using the following syntax:

{{codefile "shell" .ImportFile}}
{{- end }}

0 comments on commit 95cefdd

Please sign in to comment.