Skip to content

Commit e3a3c6c

Browse files
authored
github_repository: Deprecate the has_downloads field (#3063)
Signed-off-by: Timo Sand <timo.sand@f-secure.com>
1 parent 0530b7e commit e3a3c6c

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

github/data_source_github_repository.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,9 @@ func dataSourceGithubRepository() *schema.Resource {
6161
Computed: true,
6262
},
6363
"has_downloads": {
64-
Type: schema.TypeBool,
65-
Computed: true,
64+
Type: schema.TypeBool,
65+
Computed: true,
66+
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",
6667
},
6768
"has_wiki": {
6869
Type: schema.TypeBool,

github/resource_github_repository.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ func resourceGithubRepository() *schema.Resource {
211211
Type: schema.TypeBool,
212212
Optional: true,
213213
Description: "Set to 'true' to enable the (deprecated) downloads features on the repository.",
214+
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",
214215
},
215216
"has_wiki": {
216217
Type: schema.TypeBool,

website/docs/d/repository.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ The following arguments are supported:
6767

6868
* `merge_commit_message` - The default value for a merge commit message.
6969

70-
* `has_downloads` - Whether the repository has Downloads feature enabled.
70+
* `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).
7171

7272
* `default_branch` - The name of the default branch of the repository.
7373

website/docs/r/repository.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ The following arguments are supported:
114114

115115
* `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`.
116116

117-
* `has_downloads` - (Optional) Set to `true` to enable the (deprecated) downloads features on the repository.
117+
* `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).
118118

119119
* `auto_init` - (Optional) Set to `true` to produce an initial commit in the repository.
120120

0 commit comments

Comments
 (0)