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
{{ message }}
Repository navigation
Deprecate and then remove has_downloads attribute on github_repository #966
I think github_repository should not have a has_downloads attribute since it appears to be a deprecated property. The API still returns it, but it does not allow the value to be changed https://docs.github.com/en/rest/reference/repos#update-a-repository. I suspect the backend just throws that value out. Since it appears it isn't used, it should be deprecated and/or removed from the resource since its presence is misleading. I realize full removal is a breaking change, so maybe deprecation is the way to go for now?
I cannot find an announcement or release notes about this property to fully confirm.
@jtgrohn I've searched around internally a bit in both code and docs/communication, and I can't find anything about this changing recently either.
I'm not quite convinced that the backend throws the value out; do you think you could come up with a repro case? Looking at the docs you linked, I see that the API accepts the value when creating a repo for an authenticated user, and returns it only after that. Perhaps the setting can only be set at creation time, and never altered?
👋 Hey Friends, this issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Please add the Status: Pinned label if you feel that this issue needs to remain open/active. Thank you for your contributions and help in keeping things tidy!
👋 Hey Friends, this issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Please add the Status: Pinned label if you feel that this issue needs to remain open/active. Thank you for your contributions and help in keeping things tidy!
We use Terraform in our day-to-day operations, and we noticed that many developers were creating repositories with has_downloads set to true even though it was not necessary. As a result, we enforced has_downloads = false .
Based on comments in the issue, we initially expected that this would require configurations such as ignore_changes . However, since the internal state of the repository has been updated, the backend may no longer be discarding this value.
Activity
kfcampbell commentedon Dec 21, 2021
@jtgrohn I've searched around internally a bit in both code and docs/communication, and I can't find anything about this changing recently either.
I'm not quite convinced that the backend throws the value out; do you think you could come up with a repro case? Looking at the docs you linked, I see that the API accepts the value when creating a repo for an authenticated user, and returns it only after that. Perhaps the setting can only be set at creation time, and never altered?
github-actions commentedon Nov 30, 2022
👋 Hey Friends, this issue has been automatically marked as
stalebecause it has no recent activity. It will be closed if no further activity occurs. Please add theStatus: Pinnedlabel if you feel that this issue needs to remain open/active. Thank you for your contributions and help in keeping things tidy!Centzilius commentedon Apr 18, 2023
Maybe its a left over from this deprecation (from 11 years ago...) https://github.blog/2012-12-12-goodbye-uploads/
GMZwinge commentedon Jan 26, 2024
Thanks to @Centzilius, I started the discussion in GitHub.
github-actions commentedon Oct 23, 2024
👋 Hey Friends, this issue has been automatically marked as
stalebecause it has no recent activity. It will be closed if no further activity occurs. Please add theStatus: Pinnedlabel if you feel that this issue needs to remain open/active. Thank you for your contributions and help in keeping things tidy!yktakaha4 commentedon Dec 25, 2025
We use Terraform in our day-to-day operations, and we noticed that many developers were creating repositories with
has_downloadsset to true even though it was not necessary. As a result, we enforcedhas_downloads = false.Based on comments in the issue, we initially expected that this would require configurations such as
ignore_changes. However, since the internal state of the repository has been updated, the backend may no longer be discarding this value.