Resolves #1956 (doesn't resolve that whole issue, but contributes to it)
Custom properties are defined on an organizational level, and then applied on a repository level. This PR aims to solve the latter of those two, while the former already has a PR for it in #2107.
The PR is merged, but no new release of go-github has been released since
As @kfcampbell mentioned here, the GitHub SDK team has created a SDK generated from GitHub's OpenAPI spec. I've added and used it to implement a github_repository_custom_properties datasource with it due to the lacking functionality of go-github in this area currently. I'm currently trying to get it to write the custom properties, which I've been unsuccessful in so far. See https://github.com/octokit/go-sdk/issues/90
Resolves #1956 (doesn't resolve that whole issue, but contributes to it)
Custom properties are defined on an organizational level, and then applied on a repository level. This PR aims to solve the latter of those two, while the former already has a PR for it in #2107.
This is a work in progress (WIP) since the underlying sdk:s are lacking for the REST endpoints pertaining to the repository level custom properties:
go-github
lacks support for themulti_select
custom property type, see https://github.com/google/go-github/issues/3198. There is a PR close to being merged for solving this https://github.com/google/go-github/pull/3200go-github
has been released sincegithub_repository_custom_properties
datasource with it due to the lacking functionality ofgo-github
in this area currently. I'm currently trying to get it to write the custom properties, which I've been unsuccessful in so far. See https://github.com/octokit/go-sdk/issues/90github_repository_custom_properties
datasource togithub_repository_custom_property
(notice propertIES --> propertY), which fetches a specific property instead of all of them after discussion in https://github.com/integrations/terraform-provider-github/pull/2107#discussion_r1677557505If there's any progress on either of these I'll update this PR
Before the change?
After the change?
Pull request checklist
Does this introduce a breaking change?
Please see our docs on breaking changes to help!