Repository navigation
Conversation
|
👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday! We have a process in place for prioritizing and responding to your input. Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labeled with |
|
I'm quite new to this so I'm not really sure how I can get a build and hook up my actual terraform code to use it - do the CI builds of providers in this repo get published to the registry so they can be used for testing? |
| return diag.Errorf("error querying GitHub custom properties %s: %v", entSlug, err) | ||
| } | ||
|
|
||
| // TODO: Add support for other types of default values |
There was a problem hiding this comment.
Please don't submit PRs with missing implementation
There was a problem hiding this comment.
this was copied from resource_github_organization_custom_properties - what should be done instead?
| } | ||
|
|
||
| d.SetId(*customProperty.PropertyName) | ||
| return resourceGithubEnterpriseCustomPropertiesRead(d, meta) |
There was a problem hiding this comment.
Never call any of the CRUD functions
| _ = d.Set("allowed_values", customProperty.AllowedValues) | ||
| _ = d.Set("default_value", defaultValue) | ||
| _ = d.Set("description", customProperty.Description) | ||
| _ = d.Set("property_name", customProperty.PropertyName) | ||
| _ = d.Set("required", customProperty.Required) | ||
| _ = d.Set("value_type", string(customProperty.ValueType)) | ||
| _ = d.Set("values_editable_by", customProperty.ValuesEditableBy) |
|
|
||
| _, err := client.Enterprise.RemoveCustomProperty(context.Background(), entSlug, d.Get("property_name").(string)) | ||
| if err != nil { | ||
| return err |
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
6579448 to
7b09b67
Compare
Co-authored-by: Copilot <[email protected]>
|
@deiga I am leaving my company in a week so I won't be able to work on this anymore. If someone else wants to take it over feel free. |
Resolves #3230
I've basically copied the existing org resource/data source and adjusted it for the enterprise API calls. The tests pass for me and I can see the properties appear briefly in my enterprise while the tests are running.
Before the change?
After the change?
Pull request checklist
Does this introduce a breaking change?
Please see our docs on breaking changes to help!