Repository navigation
chore: clean the clone after every merge - #82
Merged
Bryan Fawcett (bryanfawcett) merged 1 commit intoOct 13, 2026
Merged
Conversation
scripts/clean.mjs (the same script as the extension's and the licence server's) removes the build output, the QA report, the tools' caches, finished Claude Code worktrees and local branches already in main or staging, touching only what Git ignores. It runs after a git pull that merges (.githooks/post-merge, turned on by npm ci through a new prepare script) and after Claude Code merges a pull request (.claude/settings.json, PostToolUse), and as npm run clean. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CoDNYz27iJ7o8PPztCzTpq
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
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
Adds
scripts/clean.mjs, the same script as in nyuchi/toddle-enhancement-extension and nyuchi/nyuchi-licence-server. It removes:dist/,.astro/,.vercel/output/,qa-report.jsonand the tools' caches, but only where Git ignores them.origin/mainororigin/staging, squash merges included;It never touches
main,staging, the branch you have checked out, or one in a worktree.When it runs
PostToolUsehook in.claude/settings.json. The existing permissions are kept.git pullthat merges:.githooks/post-merge. A newpreparescript runsscripts/install-hooks.mjs, the extension's script, which turns hooks on only where that silences nothing and never fails an install.npm run clean.The options are
--dry-run,--deepand--no-fetch. Docs are in CONTRIBUTING.md, with a changelog note under Unreleased → Added.Checks
npm test: build, 98/98 tests and the CSP check all pass.format:check, prettier and markdownlint: clean.npm run clean -- --dry-runlists:masterbranch;🤖 Generated with Claude Code
https://claude.ai/code/session_01CoDNYz27iJ7o8PPztCzTpq
Generated by Claude Code