You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEAT]: Support targeting dynamic list by properties in organizational rulesets #2137
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
Reacted by Usman, eladlevi-dy, Felix Luthman, Vivek, Staffan Forsell, YElyousfi, Philippe Renaud, Andreas Olsson, Julian, Stephane Moser and 34 more
Hi, are there any plans to include this functionality/PR in the upcoming releases?
Reacted by Philippe Renaud, Alexy Mantha, Daniel Del Rio, achebel, Ignacio Bolonio, BrandonCate, Illan RUL-DA CUNHA, Sam Downey, Jon Donovan, Ohad Vaserman and 4 more
👋 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!
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.
Activity
YElyousfi commentedon Jun 12, 2024
Hello, I am also looking for the same functionality. Any shot this can be tackled for an upcoming release?
MariusStorhaug commentedon Aug 5, 2024
To add to the desired interface, think the type should resemble that of the UI?
Property name, property value.
Moser-ss commentedon Sep 7, 2024
The PR #2356 add support to use the custom properties to target repositories in a ruleset
PaarthShah commentedon Oct 16, 2024
I'd also like to see this implemented
matankatz commentedon Dec 10, 2024
Hi, are there any plans to include this functionality/PR in the upcoming releases?
github-actions commentedon Sep 7, 2025
👋 Hey Friends, this issue has been automatically marked as
stalebecause it has no recent activity. It will be closed if no further activity occurs. Please add theStatus: Pinnedlabel if you feel that this issue needs to remain open/active. Thank you for your contributions and help in keeping things tidy!staffanf commentedon Sep 12, 2025
Not stale
filipefigueredo commentedon Feb 16, 2026
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.
feat: add repository_property condition support for org rulesets
mkushakov commentedon Mar 13, 2026
This PR #3235 should address this issue. Hope maintainers can review it soon.