Repository navigation
Release tags can't move, and version lines can't be deleted - #879
Merged
Merged
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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
force-pushed
the
kiwidream/ruleset-gaps
branch
from
November 17, 2026 19:18
4a57ff3 to
728b0a3
Compare
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes
.github/rulesets/release-tags.json:v*tags can't be moved or deleted. No bypass actors..github/rulesets/version-lines.json: no deletion or force push on any version line ([0-9]*.*.x, the patternsigned-commits.jsonuses). 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.xand0.1.x, whichrequired-checks-version-lines.jsonleaves out, had only the signature rule.What does not change
main's rulesets, the required checks, approvals and bypass actors, andrequired-checks-version-lines.json.1.x.xand0.1.xstill take direct pushes of signed commits; they just can't be deleted or force-pushed. Theci-evidence/*tags are notv*tags and are not covered.After it merges
An admin applies
version-lines.jsonandrelease-tags.json, as.github/rulesets/README.mddescribes (apply <file>; a ruleset that only restricts can be applied in any order). Nothing changes on GitHub until then.Checks
jqparses every ruleset file; each changed file differs frommainonly by the added rules.[0-9]*.*.xmatches0.1.x,1.x.x,2.x.x,3.0.xand3.x.x, and not the branch0.1.1;v*matches the 19 release tags.v*tag (prism-load-l3.ymlonly reads tag pushes).🤖 Generated with Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.