From 6cb1cdf47f04137c35042b1d78248f43f2cd6b5f Mon Sep 17 00:00:00 2001 From: salvador-gisbert Date: Fri, 20 Mar 2026 18:59:33 +0100 Subject: [PATCH] Clarify auto_init behavior in R repository docs Update repository docs to state that auto_init only applies at creation. Adding auto_init to an existing repository will not initialize it; users must run terraform destroy and terraform apply to have the repository initialized properly. This reduces confusion about post-creation changes to the resource. --- website/docs/r/repository.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/r/repository.html.markdown b/website/docs/r/repository.html.markdown index 157fd01caa..f8c0fdc35b 100644 --- a/website/docs/r/repository.html.markdown +++ b/website/docs/r/repository.html.markdown @@ -116,7 +116,7 @@ The following arguments are supported: * `has_downloads` - (**DEPRECATED**) (Optional) Set to `true` to enable the (deprecated) downloads features on the repository. This attribute is no longer in use, but it hasn't been removed yet. It will be removed in a future version. See [this discussion](https://github.com/orgs/community/discussions/102145#discussioncomment-8351756). -* `auto_init` - (Optional) Set to `true` to produce an initial commit in the repository. +* `auto_init` - (Optional) Set to `true` to produce an initial commit in the repository. If a repository is created without activating this functionality, adding it afterwards will not be effective. You'll have to `terraform destroy` and `terraform apply` again for the repository to be initialized properly. * `gitignore_template` - (Optional) Use the [name of the template](https://github.com/github/gitignore) without the extension. For example, "Haskell".