Skip to content

[FEAT]: Support targeting dynamic list by properties in organizational rulesets #2137

@jinkang23

Description

@jinkang23

Describe the need

GitHub Rest API Create an organization repository ruleset recently added support in conditions parameter to also target dynamic list by custom properties (i.e. conditions.repository_property_and_ref_name).

I'm asking to add support for this in GitHub terraform resource github_organization_ruleset.
Can this support be added to the next release version? Thank you!

Here's an example of what I'm asking.

resource "github_organization_ruleset" "example" {
  name        = "example"
  target      = "branch"
  enforcement = "active"

  conditions {
    ref_name {
      include = ["~ALL"]
      exclude = []
    }

    # add new `repository_property` nested block under `conditions` block
    repository_property {
      include = ["custom-prop1","custom-prop2"]
      exclude = []
    }

  }
...
}

SDK Version

No response

API Version

2022-11-28

Relevant log output

No response

Code of Conduct

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: Up for grabsIssues that are ready to be worked on by anyoneType: FeatureNew feature or request

    Type

    No type

    Projects

    Status

    🔥 Backlog

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions