Skip to content

Release tags can't move, and version lines can't be deleted - #879

Merged
kiwidream merged 1 commit into
mainfrom
kiwidream/ruleset-gaps
Nov 17, 2026
Merged

kiwidream merged 1 commit into
mainfrom
kiwidream/ruleset-gaps

Conversation

@kiwidream

@kiwidream kiwidream commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

What changes

  • New .github/rulesets/release-tags.json: v* tags can't be moved or deleted. No bypass actors.
  • New .github/rulesets/version-lines.json: no deletion or force push on any version line ([0-9]*.*.x, the pattern signed-commits.json uses). No bypass actors.
  • .github/rulesets/README.md: the table and the setup chain.

Why

A scan of the live rulesets on 17 November found two gaps here. No ruleset covers the release tags. And the version lines require pull requests and signed commits, but could still be deleted; the dormant 1.x.x and 0.1.x, which required-checks-version-lines.json leaves out, had only the signature rule.

What does not change

main's rulesets, the required checks, approvals and bypass actors, and required-checks-version-lines.json. 1.x.x and 0.1.x still take direct pushes of signed commits; they just can't be deleted or force-pushed. The ci-evidence/* tags are not v* tags and are not covered.

After it merges

An admin applies version-lines.json and release-tags.json, as .github/rulesets/README.md describes (apply <file>; a ruleset that only restricts can be applied in any order). Nothing changes on GitHub until then.

Checks

  • jq parses every ruleset file; each changed file differs from main only by the added rules.
  • What the patterns match today: [0-9]*.*.x matches 0.1.x, 1.x.x, 2.x.x, 3.0.x and 3.x.x, and not the branch 0.1.1; v* matches the 19 release tags.
  • No workflow in this repository creates, moves or deletes a v* tag (prism-load-l3.yml only reads tag pushes).
  • No test or script in this repository reads the list of ruleset files.

🤖 Generated with Claude Code


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-17T19:20:07.882928Z 728b0a3 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

## What changes

- New `.github/rulesets/release-tags.json`: `v*` tags can't be moved or deleted. No bypass actors.
- New `.github/rulesets/version-lines.json`: no deletion or force push on any version line (`[0-9]*.*.x`, the pattern `signed-commits.json` uses). No bypass actors.
- `.github/rulesets/README.md`: the table and the setup chain.

## Why

A scan of the live rulesets on 17 November found two gaps here. No ruleset covers the release tags. And the version lines require pull requests and signed commits, but could still be deleted; the dormant `1.x.x` and `0.1.x`, which `required-checks-version-lines.json` leaves out, had only the signature rule.

## What does not change

`main`'s rulesets, the required checks, approvals and bypass actors, and `required-checks-version-lines.json`. `1.x.x` and `0.1.x` still take direct pushes of signed commits; they just can't be deleted or force-pushed. The `ci-evidence/*` tags are not `v*` tags and are not covered.

## After it merges

An admin applies `version-lines.json` and `release-tags.json`, as `.github/rulesets/README.md` describes (`apply <file>`; a ruleset that only restricts can be applied in any order). Nothing changes on GitHub until then.

## Checks

- `jq` parses every ruleset file; each changed file differs from `main` only by the added rules.
- What the patterns match today: `[0-9]*.*.x` matches `0.1.x`, `1.x.x`, `2.x.x`, `3.0.x` and `3.x.x`, and not the branch `0.1.1`; `v*` matches the 19 release tags.
- No workflow in this repository creates, moves or deletes a `v*` tag (`prism-load-l3.yml` only reads tag pushes).
- No test or script in this repository reads the list of ruleset files.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Squashed commits:
4a57ff3 rulesets: release tags can't move, and version lines can't be deleted

Squashed-from: 4a57ff3
@kiwidream
kiwidream force-pushed the kiwidream/ruleset-gaps branch from 4a57ff3 to 728b0a3 Compare November 17, 2026 19:18
@kiwidream
kiwidream merged commit 475605e into main Nov 17, 2026
38 of 40 checks passed

@qbit-reviewer qbit-reviewer Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved: a complete review with no bugs found.

No bugs or security points found.

Not posted: 1 nit and 1 lead. Reviews post bugs and security points only; the rest stay in Sixth Man's ledger.

Reviewed by Claude Opus 5.5.

djh58 added a commit that referenced this pull request Nov 23, 2026
…qlx#4289), squash-merge landing and the release-tags ruleset

Merges main at 8c561dc into 3.x.x at ec677fb.

From main, unchanged: the transact-rs/sqlx#4289 backport in
vendor/sqlx-core/src/pool/inner.rs (#917), and the landing and ruleset
changes of #877 and #879 (.github/repository-settings.json,
.github/rulesets/, .github/workflows/signed-landing.yml, docs/releasing.md).

One conflict, vendor/sqlx-core/README.md: both branches changed the
paragraph on how the diffs apply and the line that introduces the CI
check. The merge keeps 3.x.x's text on the recorded patches and main's on
#4289.

Three edits that are not from main, which 3.x.x's source check needs:

- vendor/sqlx-core.patches/0004-sqlx-4289-pool-num-idle-cannot-underflow.patch
  records the change, as scripts/check_vendored_sqlx_core.py
  --unrecorded-diff printed it;
- vendor/sqlx-core/README.md names that patch, and says that CI runs no
  test of #4289's change;
- tests/test_check_vendored_sqlx_core.py expects 4 patches and 5 patched
  files.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant