Repository navigation
ci: main's history rules are a ruleset of their own, which exempts nobody - #455
Merged
Merged
Conversation
…body Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TsLtVyz8wPocZ8oFBEnLcV
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.
Closes #454.
main-history.jsonis a new payload:main-history-protection, on main, holdingdeletion,non_fast_forwardandrequired_linear_history, with no bypass actor.main.jsonkeepspull_request,required_status_checksandcode_scanning, with the release App its one bypass actor, as before.A bypass reaches every rule of the ruleset that lists it, so the App is past only what a release commit cannot pass: the pull request, its checks and code scanning. It cannot delete main, force-push it or merge into it. A release still lands:
createCommitOnBranchadds one commit on main's head, a fast-forward with one parent, which passes all three history rules as a squash merge does. Rulesets compose, so every write to main answers to both..github/rulesets/README.mdgivesmain-history.jsona section of its own, with the three rules' reasons moved there and why it exempts nobody. The paragraph on the App's bypass no longer says it could force-push or delete main.Once merged,
main-history-protectionis created first andmain.jsonapplied to ruleset 20170625 after, so main is never without its history rules between the two.JSON parsescovers the new payload,contexts.shfinds all 126 contexts inmain.json, and markdownlint passes.🤖 Generated with Claude Code
https://claude.ai/code/session_01TsLtVyz8wPocZ8oFBEnLcV