-
Notifications
You must be signed in to change notification settings - Fork 903
Add values_editable_by support to github_organization_custom_properties #2931
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add values_editable_by support to github_organization_custom_properties #2931
Conversation
79b4ec9 to
a06f75a
Compare
|
I was looking to add the same PR to fix this missing property on the provider! |
deiga
left a comment
There was a problem hiding this 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_byfield in the API? - Since the
values_editable_byfield has a specific list of values it accepts, could you add validation to check it's values? :)
|
@deiga thank you for the review, I made the requested changes. Let me know what you think :) |
deiga
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing, Thank you!
stevehipwell
left a comment
There was a problem hiding this 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?
Always. It's a bit of a slog, but it's currently the best approach for verification that we have. |
Hopefully #2946 will be able to make this less of a challenge. |
Resolves #2930
Before the change?
The
github_organization_custom_propertiesresource does not support thevalues_editable_byfield. On the UI this is calledAllow repository actors to set this propertyand can be set to eitherEnabledorDisabled. In the API (and go-github) it is calledvalues_editable_byand can be set toorg_actors(default),org_and_repo_actors.After the change?
The
github_organization_custom_propertiesresource now supports thevalues_editable_byfield with valuesorg_actors(default) ororg_and_repo_actors.Pull request checklist
Does this introduce a breaking change?
Please see our docs on breaking changes to help!
This adds a new, optional field who's default value matches the current behavior.