Define all GitHub rulesets as files #124
Reference in New Issue
Block a user
Delete Branch "benvin/github-rulesets-dir"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Rulesets were split between YAML files and flags that generated them inside the repository module, with reserved names and no way to apply one org-wide. All rulesets now live in
ruleset/and decide their own reach.ruleset/files for branch-protection, tag-protection, ref-names-branch and ref-names-tagall_repos(public repos only) andmandatoryfieldsbranch_protection,tag_protection,required_checkswithexclude_rulesetsgithub_orgper<repo>/<ruleset>pair after repositories, withmovedblocks for.githubmandatory: truewithall_repos: falseis accepted but has no effect (mandatory only constrainsexclude_rulesets, and opt-in viarulesetsis unaffected) → add a ruleset validation requiringall_reposwhenmandatory, plus a test.branch_protection/tag_protection/required_checksare silently dropped by object conversion if a repo yaml still sets them (a leftoverrequired_checkswould quietly lose the check) → none set today; acceptable, or add a guard if you want it loud.