From 2cf4dde6b8848c35945ac4d8eac631431bd276b9 Mon Sep 17 00:00:00 2001 From: Timo Sand Date: Fri, 26 Dec 2025 01:16:28 +0200 Subject: [PATCH] `github_repository`: Deprecate the `has_downloads` field Signed-off-by: Timo Sand --- github/data_source_github_repository.go | 5 +++-- github/resource_github_repository.go | 1 + website/docs/d/repository.html.markdown | 2 +- website/docs/r/repository.html.markdown | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/github/data_source_github_repository.go b/github/data_source_github_repository.go index 7da910c565..1f2a7c19ef 100644 --- a/github/data_source_github_repository.go +++ b/github/data_source_github_repository.go @@ -61,8 +61,9 @@ func dataSourceGithubRepository() *schema.Resource { Computed: true, }, "has_downloads": { - Type: schema.TypeBool, - Computed: true, + Type: schema.TypeBool, + Computed: true, + Deprecated: "This attribute is no longer in use, but it hasn't been removed yet. It will be removed in a future version. See https://github.com/orgs/community/discussions/102145#discussioncomment-8351756", }, "has_wiki": { Type: schema.TypeBool, diff --git a/github/resource_github_repository.go b/github/resource_github_repository.go index 3e27bfb824..8b504b7094 100644 --- a/github/resource_github_repository.go +++ b/github/resource_github_repository.go @@ -211,6 +211,7 @@ func resourceGithubRepository() *schema.Resource { Type: schema.TypeBool, Optional: true, Description: "Set to 'true' to enable the (deprecated) downloads features on the repository.", + Deprecated: "This attribute is no longer in use, but it hasn't been removed yet. It will be removed in a future version. See https://github.com/orgs/community/discussions/102145#discussioncomment-8351756", }, "has_wiki": { Type: schema.TypeBool, diff --git a/website/docs/d/repository.html.markdown b/website/docs/d/repository.html.markdown index fdf4343360..071da23c89 100644 --- a/website/docs/d/repository.html.markdown +++ b/website/docs/d/repository.html.markdown @@ -67,7 +67,7 @@ The following arguments are supported: * `merge_commit_message` - The default value for a merge commit message. -* `has_downloads` - Whether the repository has Downloads feature enabled. +* `has_downloads` - (**DEPRECATED**) Whether the repository has Downloads feature enabled. 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). * `default_branch` - The name of the default branch of the repository. diff --git a/website/docs/r/repository.html.markdown b/website/docs/r/repository.html.markdown index cf93ebb9ea..92c67745de 100644 --- a/website/docs/r/repository.html.markdown +++ b/website/docs/r/repository.html.markdown @@ -114,7 +114,7 @@ The following arguments are supported: * `web_commit_signoff_required` - (Optional) Require contributors to sign off on web-based commits. See more [here](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/managing-the-commit-signoff-policy-for-your-repository). Defaults to `false`. -* `has_downloads` - (Optional) Set to `true` to enable the (deprecated) downloads features on the repository. +* `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.