Mirror script: drop the BOOTSTRAP_ADMINS text rule (#303)
* Mirror script: drop the BOOTSTRAP_ADMINS text rule
- CI / Typecheck and bundlesuccess
- CI / Unit tests (1/2)success
- CI / Unit tests (2/2)success
- Deploy / Deploy to Cloudflaresuccess
- Deploy / Main's current tipsuccess
- End-to-end / End-to-end (agent reviews, tasks, Today)success
- End-to-end / End-to-end (git, PRs, Actions)success
- End-to-end / End-to-end (large pushes)success
- End-to-end / End-to-end (passkeys, registry, email)Failed
- End-to-end / End-to-end (real histories)success
- End-to-end / End-to-end (runner Docker)success
- End-to-end / End-to-end (security)Failed
- Live test / Containers, registry, sandboxes, webhooks, schedules, LFS and pull requestssuccess
- Mirror to GitHub / Push main to the GitHub mirrorsuccess
1 file changed+1−7
modifiedscripts/mirror-to-github.sh+1−7View file
| @@ -3,7 +3,7 @@ | ||
| 3 | 3 | # |
| 4 | 4 | # Every author and committer becomes codician-team and the attribution trailers |
| 5 | 5 | # (Co-authored-by, Claude-Session, Signed-off-by) are dropped, so GitHub lists no |
| 6 | -# personal contributors; old personal addresses in wrangler.jsonc are replaced. | |
| 6 | +# personal contributors. | |
| 7 | 7 | # The rewrite is deterministic: the same Diffinery history always gives the same |
| 8 | 8 | # GitHub commits, so a sync is a fast-forward unless Diffinery's own history was |
| 9 | 9 | # rewritten (then GitHub follows it). Only main is mirrored. |
| @@ -43,16 +43,10 @@ | ||
| 43 | 43 | cd "$work/repo.git" |
| 44 | 44 | src_head=$(git rev-parse main) |
| 45 | 45 | |
| 46 | -# Old wrangler.jsonc versions listed the bootstrap admins' personal addresses. | |
| 47 | -cat > "$work/replacements.txt" <<'RULES' | |
| 48 | -regex:("BOOTSTRAP_ADMINS": ")[^"]*@[^"]*"==>\1admin@example.com" | |
| 49 | -RULES | |
| 50 | - | |
| 51 | 46 | export MIRROR_NAME="$NAME" MIRROR_EMAIL="$EMAIL" |
| 52 | 47 | git filter-repo --force --quiet --refs main --replace-refs delete-no-add \ |
| 53 | 48 | --name-callback 'return os.environ["MIRROR_NAME"].encode()' \ |
| 54 | 49 | --email-callback 'return os.environ["MIRROR_EMAIL"].encode()' \ |
| 55 | - --replace-text "$work/replacements.txt" \ | |
| 56 | 50 | --message-callback ' |
| 57 | 51 | import re |
| 58 | 52 | drop = re.compile(r"^(co-authored-by|claude-session|signed-off-by):|^\U0001f916 generated with \[claude code\]|^https://claude\.ai/code/session_", re.I) |