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
Discussion: split rules into branch_rules, push_rules etc. in ruleset resources #3584
Our ruleset resources currently have a rules Set just the GitHub API accepts it. This requires us to write custom validation logic for rules which are allowed only with a specific target.
To make validations and UX simpler, I'm suggesting to split the rules attribute into something like branch_rules, tag_rules, push_rules etc.
This would remove the need for us to validate which rule is allowed with with target and it would be clearer for our users as well that rules relate to targets.
That would enable us to remove the rules validation for "is this target allowed to set this rule" and replace it with simpler built-in validators.
It would make the UX for our users nicer since they don't have to trial-and-error the rules.
This repo is maintained by GitHub and community members on a best-effort basis. We'll get to this as soon as we can.
You can help us prioritize by adding details, reproduction steps, or a 👍 to issues that matter to you, and by joining the discussion on open issues and PRs.
Activity
github-actions commentedon Jul 28, 2026
👋 Hi, and thank you for opening this issue!
This repo is maintained by GitHub and community members on a best-effort basis. We'll get to this as soon as we can.
You can help us prioritize by adding details, reproduction steps, or a 👍 to issues that matter to you, and by joining the discussion on open issues and PRs.
🤖 This is an automated message.