Skip to content

Conversation

@markszabo
Copy link
Contributor

@markszabo markszabo commented Nov 21, 2025

Resolves #2930


Before the change?

The github_organization_custom_properties resource does not support the values_editable_by field. On the UI this is called Allow repository actors to set this property and can be set to either Enabled or Disabled. In the API (and go-github) it is called values_editable_by and can be set to org_actors (default), org_and_repo_actors.

After the change?

The github_organization_custom_properties resource now supports the values_editable_by field with values org_actors (default) or org_and_repo_actors.

  • values_editable_by - (Optional) Who can edit the values of the custom property. Can be one of org_actors or org_and_repo_actors. When set to org_actors (the default), only organization owners can edit the property values on repositories. When set to org_and_repo_actors, both organization owners and repository administrators with the custom properties permission can edit the values.

Pull request checklist

  • Schema migrations have been created if needed (example)
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)

Does this introduce a breaking change?

Please see our docs on breaking changes to help!

  • Yes
  • No

This adds a new, optional field who's default value matches the current behavior.

@markszabo markszabo force-pushed the ValuesEditableBy-support branch from 79b4ec9 to a06f75a Compare November 21, 2025 01:14
@sheplu
Copy link

sheplu commented Nov 23, 2025

I was looking to add the same PR to fix this missing property on the provider!
+1

Copy link
Contributor

@deiga deiga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@markszabo Thank you for your contribution! 🎉

I'd like to ask you for a few more additions:

  • Could you add a test that verifies that this change won't affect existing values of the values_editable_by field in the API?
  • Since the values_editable_by field has a specific list of values it accepts, could you add validation to check it's values? :)

@markszabo
Copy link
Contributor Author

@deiga thank you for the review, I made the requested changes. Let me know what you think :)

Copy link
Contributor

@deiga deiga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing, Thank you!

Copy link
Collaborator

@stevehipwell stevehipwell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nickfloyd are you running local tests on PRs before merging them?

@nickfloyd nickfloyd added this to the v6.x version wrap up milestone Nov 25, 2025
@nickfloyd
Copy link
Member

nickfloyd commented Nov 25, 2025

@nickfloyd are you running local tests on PRs before merging them?

Always. It's a bit of a slog, but it's currently the best approach for verification that we have.

@nickfloyd nickfloyd added the Type: Feature New feature or request label Nov 25, 2025
@nickfloyd nickfloyd moved this from Backlog to In Review in Terraform Provider Nov 25, 2025
@stevehipwell
Copy link
Collaborator

Always. It's a bit of a slog, but it's currently the best approach for verification that I we have.

Hopefully #2946 will be able to make this less of a challenge.

@nickfloyd nickfloyd merged commit 895ae19 into integrations:main Nov 25, 2025
8 checks passed
@github-project-automation github-project-automation bot moved this from In Review to Done in Terraform Provider Nov 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: Feature New feature or request

Projects

Development

Successfully merging this pull request may close these issues.

[FEAT]: Add 'Allow repository actors to set this property' support for github_organization_custom_properties

7 participants