Skip to content

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

Closed

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

Activity

  1. added
    Status: Triage
    Type: Feature
    on Feb 9, 2024
  2. added
    Status: Up for grabs
    and removed
    Status: Triage
    on Feb 12, 2024
  3. moved this from 🆕 Triage to 🔥 Backlog in 🧰 Octokit Activeon Feb 12, 2024
  4. YElyousfi commented on Jun 12, 2024

    @YElyousfi

    Hello, I am also looking for the same functionality. Any shot this can be tackled for an upcoming release?

  5. MariusStorhaug commented on Aug 5, 2024

    @MariusStorhaug

    To add to the desired interface, think the type should resemble that of the UI?

    Property name, property value.

  6. Moser-ss commented on Sep 7, 2024

    @Moser-ss
    Contributor

    The PR #2356 add support to use the custom properties to target repositories in a ruleset

  7. PaarthShah commented on Oct 16, 2024

    @PaarthShah

    I'd also like to see this implemented

  8. matankatz commented on Dec 10, 2024

    @matankatz

    Hi, are there any plans to include this functionality/PR in the upcoming releases?

  9. github-actions commented on Sep 7, 2025

    @github-actions

    👋 Hey Friends, this issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Please add the Status: Pinned label if you feel that this issue needs to remain open/active. Thank you for your contributions and help in keeping things tidy!

  10. added
    Status: Stale
    on Sep 7, 2025
  11. staffanf commented on Sep 12, 2025

    @staffanf

    Not stale

  12. removed
    Status: Stale
    on Sep 13, 2025
  13. filipefigueredo commented on Feb 16, 2026

    @filipefigueredo

    I'm also looking forward to seeing this feature implemented. We have 110+ repositories in our organization and growing rapidly. Using custom properties to target rulesets would be the cleanest way to manage both existing and incoming repositories at scale.

  14. added a commit that references this issue on Feb 27, 2026
    3439ad5
  15. moved this from Backlog to In Progress in Terraform Provideron Feb 27, 2026
  16. mkushakov commented on Mar 13, 2026

    @mkushakov

    This PR #3235 should address this issue. Hope maintainers can review it soon.

  17. moved this from 🔥 Backlog to ✅ Done in 🧰 Octokit Activeon Mar 23, 2026
  18. moved this from In Progress to Done in Terraform Provideron Mar 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: Up for grabsType: Feature

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions