Skip to content

[BUG]: GitHub_organization_custom_properties #2806

@bouldermaster123

Description

@bouldermaster123

Expected Behavior

If I want to create a custom property with mutli_select (organization wide) I cannot set mutiple default values.

resource "github_organization_custom_properties" "repo_props" {
property_name = "temp1"
value_type = "multi_select"
required = true
description = "BlaBla"
allowed_values = [
"b1",
"b2",
"b3"
]
default_value = ["b1", "b2"] # does not work because terraform expects a string here but would work with the api
default_value = "b1,b2" # does not work as GitHub expects a array here.
}

It's therefore not possible to set 2 default values as far as I see as there is a mismatch between terraform and the GitHub API.

Actual Behavior

I think I should be able to set a list or a string here... string for single select and list for multi select

Terraform Version

Version 6.7

Affected Resource(s)

github_organization_custom_properties

Terraform Configuration Files

Steps to Reproduce

No response

Debug Output

Panic Output

Code of Conduct

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: TriageThis is being looked at and prioritizedType: BugSomething isn't working as documented

    Type

    No type

    Projects

    Status

    🆕 Triage

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions