Skip to content

Deprecate and then remove has_downloads attribute on github_repository #966

Closed

Description

@jtgrohn

Affected Resource(s)

  • github_repository

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.

Activity

  1. kfcampbell commented on Dec 21, 2021

    @kfcampbell
    Contributor

    @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?

  2. github-actions commented on Nov 30, 2022

    @github-actions

    👋 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!

  3. added
    Status: Stale
    and removed on Nov 30, 2022
  4. added
    Type: Support
    Status: Needs info
    on Dec 1, 2022
  5. removed
    Status: Stale
    on Dec 1, 2022
  6. Centzilius commented on Apr 18, 2023

    @Centzilius
  7. GMZwinge commented on Jan 26, 2024

    @GMZwinge

    Thanks to @Centzilius, I started the discussion in GitHub.

  8. github-actions commented on Oct 23, 2024

    @github-actions

    👋 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!

  9. added
    Status: Stale
    on Oct 23, 2024
  10. yktakaha4 commented on Dec 25, 2025

    @yktakaha4

    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.

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    DeprecationStatus: Needs infoStatus: StaleType: Supportr/repository

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions