Skip to content

[MAINT]: Naming of organization custom properties needs the change (from plural to singular) #2936

Open

Description

@ViacheslavKudinov

Describe the need

Currently data and resource use properties (plural) in the naming, but in reality both work only with a single property.

To follow the naming of other resources and properties naming should be changed to property (singular).

Resource organization_custom_properties
Data organization_custom_properties
both use attribute property_name which is only a single one and both can't work with more than a single custom property.

It probably the use case when data and resource should be renamed to organization_custom_property (singular),
plurals need to be marked as deprecated within version v6 of provider and probably removed in v7.

SDK Version

No response

API Version

No response

Relevant log output

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

  1. added
    Status: Triage
    Type: Maintenance
    on Nov 23, 2025
  2. changed the title [-][MAINT]: Naming of organization custom properties needs th change[/-] [+][MAINT]: Naming of organization custom properties needs the change (from plural to singular)[/+] on Nov 23, 2025
  3. mroyme commented on Nov 23, 2025

    @mroyme

    Minor suggestion:
    We could also consider changing property_name to name.

    I know that property_name was probably used because it maps 1:1 with the parameters in the API, but it just seems a bit wonky to have it since it is already implied.

  4. moved this from Backlog to On Deck in Terraform Provideron Nov 24, 2025
  5. modified the milestones: , v7.0.0 Release on Nov 24, 2025
  6. added
    Status: Up for grabs
    Good first issue
    and removed
    Status: Triage
    on Mar 22, 2026
  7. removed
    Status: Up for grabs
    Good first issue
    on May 22, 2026
  8. mkushakov commented on Aug 13, 2026

    @mkushakov

    #3234 covers most of this, but not all of it, so flagging what's in and what isn't before anyone closes it.

    Addressed:

    • A singular resource and data source, github_organization_repository_custom_property, written against ARCHITECTURE.md.
    • The plural github_organization_custom_properties pair deprecated with a DeprecationMessage pointing at the new name, CRUD otherwise untouched — the deprecate-in-v6 half of the plan in the description.

    Not addressed:

    • The new name is organization_repository_custom_property rather than organization_custom_property, per @stevehipwell's review feedback: these definitions apply to repositories, and the extra segment keeps them clearly related to github_repository_custom_property.
    • property_name is kept rather than shortened to name (@mroyme's suggestion above). It matches the API field, and changing it would mean carrying a second rename through the deprecated pair as well.
    • Removal of the plural pair, which the description itself defers to v7.

    No strong preference on whether this closes when #3234 merges or stays open to track the v7 removal — it's currently linked as a plain reference, not a closing keyword, so it won't auto-close either way.

  9. deiga commented on Aug 13, 2026

    @deiga
    Collaborator

    Resolving this is fine, we have "remove all deprecations" issue for v7 somewhere

  10. stevehipwell commented on Aug 21, 2026

    @stevehipwell
    Collaborator

    @mkushakov I'd be in favour of taking the pain now and adding name to be mutually exclusive to property_name (which can be deprecated) and using the same pattern I used for the secret value renames.

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

Metadata

Metadata

Assignees

Labels

Type: Maintenance

Type

No type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions