Repository navigation
Delete merged branches by default; guarded tag reset - #98
Merged
Merged
Conversation
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.
Summary
apply-rulesets.shnow sets GitHub'sdelete_branch_on_merge(--keep-branchesopts out) before applying the rulesets. Because the branch ruleset requires passing checks to merge, a branch is deleted only after a successful, validated merge.scripts/prune-merged-branches.sh [CHECKOUT] [--apply]handles local copies. It deletes branches whose upstream is gone and whose tip is on the default branch, and removes theirbranch.<name>config. It never deletes the current, default, unmerged, squash-merged or never-pushed branch.scripts/reset-release-tags.py OWNER/REPO (--move vX.Y.Z | --fresh vX.Y.Z) --to SHA [--apply --confirm OWNER/REPO]handles a deliberate re-tag or fresh tag. It is a dry run by default and lists every tag, release and cached copy it contradicts.--applyrequires the repository name typed back. The target SHA must be on the default branch. The tag ruleset is disabled only for the operation and re-enabled infinally.--moveupdates the ref in place, so the release stays published.docs/tools/repository-rulesets.md, README and CHANGELOG.Tests
gh.Two were proven red:
finallychanged toelse, and the not-merged reason dropped. Full suite: 1773 passed. Pint, PHPStan, ShellCheck andpy_compileare clean.