Skip to content

Rulesets as code, and one source of branch protection #117

Closed

Description

@DrunkOnJava

Scope

Export the main-protection ruleset to .github/rulesets/; remove the legacy branch protection that duplicates it; remove the admin "always" bypass (rvt-rs removed its own on 2026-10-05 after a bypass merged without the required checks); allow auto-merge so the strict up-to-date queue can land Dependabot PRs.

State on main (2026-10-21)

A ruleset and a legacy protection rule both guard main; the ruleset lets admins bypass always; auto-merge is off.

Acceptance

  • The live ruleset equals its file (the audit checks it)
  • No legacy branch protection
  • Auto-merge allowed

Parent: #114

Verified on October 25, 2026

PR #213 merged as ab1d42b029a34e9b030b68fa2c334c6728df2935 (GitHub-verified signature). Its ruleset file is an exact normalized match for the live ruleset, preserving all current restrictions and adding the required Streaming E2E check. Bypass actors are empty. The legacy branch-protection endpoint returns 404 and repository auto-merge is enabled. All three acceptance criteria above are met. The merged tree exactly matches the checked candidate e7c3df45bbb7c9af56de3297b342e080e32baf9f.

Activity

  1. added
    type:ci
    area:github
    priority:P2
    on Oct 21, 2026
  2. DrunkOnJava commented on Oct 21, 2026

    @DrunkOnJava
    OwnerAuthor

    Done 2026-10-21:

    Left: the ruleset's admin bypass (RepositoryRole 5, always). rvt-rs removed its own after an admin merge skipped the required checks. Removing it here means admin merges need green checks too; that is the owner's call.

  3. DrunkOnJava commented on Oct 21, 2026

    @DrunkOnJava
    OwnerAuthor

    The admin bypass is removed too (bypass_actors: []), so an admin merge needs the same green checks. Every item of this issue is done; it closes when the follow-up PR updates .github/rulesets/main-protection.json to the live ruleset.

  4. DrunkOnJava commented on Oct 26, 2026

    @DrunkOnJava
    OwnerAuthor

    Stranded-branch note: the local branch ci/spec-coverage-check carried a51622b (this issue's ruleset file plus a docs/maintaining.md paragraph). The ruleset file reached main through #213 (ab1d42b), extended with Streaming E2E, and matches the live ruleset. The prose never did; #220 brings it, updated to the ten required checks. The local branch is deleted.

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

    area:githubpriority:P2type:ci

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions