Commit f4fa928
committed
Replaces the script work of two prior PRs that independently solved
"add an existing scratchfoundation repo to the monorepo":
scripts/add-repo.sh — collapses add-to-monorepo.sh (#434) and add-repo.sh
(#505) into a single canonical entry point. Takes the CLI shape and
auto-CI-regen from #505 and the source-branch auto-detect (develop ->
main -> master), normalization (sort-package-json), and clean-tree
pre-flight from #434.
scripts/update-gha-workflows.ts — replaces the CircleCI-era
build-gha-workflows.ts and workspace-template.yml. Regenerates
.github/path-filters.yml and incrementally updates publish.yml.
Open review comments on #505 are addressed:
- sed -i portability bug: rewrites now use perl -pi -e (works on macOS,
NixOS, Ubuntu/Debian/Arch, WSL). Perl is added to the explicit prereq
check next to git-filter-repo, sponge, and jq.
- Arg parser now rejects flag-stealing: --source-branch --org foo errors
instead of silently using --org as the branch name.
- npm-install failures hard-fail by default. --continue-on-error opts
into the prior soft-fail behavior; failures are still logged to
add-repo.errors.log when continuing.
- The submodules-aware branch in move_repository_subdirectory keeps a
TODO comment marking that it has never been exercised against a real
submodules-bearing repo and should be run carefully when one lands.
No repo additions are included; this PR is script-tooling only.
1 parent d729926 commit f4fa928
1,855 files changed
Lines changed: 64562 additions & 0 deletions
File tree
- feat_canonical-add-repo-script
- scratch-gui
- chunks
- mediapipe/face_detection
- static
- assets
- blocks-media
- default
- extensions
- icons
- high-contrast
- extensions
- icons
- extensions
- microbit
- scratch-render
- docs
- assets
- classes
- types
- scratch-svg-renderer
- scratch-vm
- chunks
- media
- extensions
- icons
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 26350 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
Large diffs are not rendered by default.
0 commit comments