You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
deprecate: mark has_downloads variable as deprecated (#17)
* deprecate: mark has_downloads variable as deprecated
The `has_downloads` attribute is officially deprecated in the GitHub
provider (v6.10.2) and will be removed in a future version. This change:
- Adds deprecation notice to variable description
- Removes has_downloads from github_repository resource
- Adds check block to warn users who set has_downloads=true
- Bumps minimum Terraform version to 1.5 (required for check blocks)
The variable is retained for backward compatibility so existing
configurations won't break, but users will see a warning.
* docs: update README with Terraform 1.5 requirement and deprecation notice
Auto-generated documentation updates reflecting:
- Minimum Terraform version changed to >= 1.5
- has_downloads variable marked as deprecated
* fix: remove unused has_downloads variable from examples
The deprecated has_downloads variable was declared in both example
files but not used, causing tflint to fail CI with "variable is
declared but not used" warnings.
* fix: remove has_downloads from fixtures file
The terratest was failing because the fixtures file still referenced
the has_downloads variable which was removed from the example.
* fix: remove has_downloads assertion from test
The has_downloads field is deprecated by GitHub and was removed from
the module. The test assertion needs to be removed as well.
@@ -178,7 +178,7 @@ Here is an example of using this module:
178
178
| <aname="input_fork"></a> [fork](#input\_fork)| Configuration for forking an existing repository | <pre>object({<br/> source_owner = string<br/> source_repo = string<br/> })</pre> |`null`| no |
179
179
| <aname="input_gitignore_template"></a> [gitignore\_template](#input\_gitignore\_template)| Gitignore template |`string`|`null`| no |
180
180
| <aname="input_has_discussions"></a> [has\_discussions](#input\_has\_discussions)| Whether the repository has discussions enabled |`bool`|`false`| no |
181
-
| <aname="input_has_downloads"></a> [has\_downloads](#input\_has\_downloads)| Whether the repository has downloads enabled |`bool`|`false`| no |
181
+
| <aname="input_has_downloads"></a> [has\_downloads](#input\_has\_downloads)|(DEPRECATED) Whether the repository has downloads enabled. This attribute is deprecated by GitHub and will be removed in a future version of this module.|`bool`|`false`| no |
182
182
| <aname="input_has_issues"></a> [has\_issues](#input\_has\_issues)| Whether the repository has issues enabled |`bool`|`false`| no |
183
183
| <aname="input_has_projects"></a> [has\_projects](#input\_has\_projects)| Whether the repository has projects enabled |`bool`|`false`| no |
184
184
| <aname="input_has_wiki"></a> [has\_wiki](#input\_has\_wiki)| Whether the repository has wiki enabled |`bool`|`false`| no |
error_message="DEPRECATION WARNING: The 'has_downloads' variable is deprecated. GitHub has removed this feature and this variable will be removed in a future version of this module. Please remove 'has_downloads' from your configuration."
0 commit comments