Diffinery

codician/diffinerypublic

Open-source, agent-first GitHub and GitHub Actions alternative that runs on your own Cloudflare account: git hosting, pull requests, code review and drop-in GitHub Actions YAML on Workers, Durable Objects, R2 and Containers.

1 file changed+1−7
modifiedscripts/mirror-to-github.sh+1−7View file
@@ -3,7 +3,7 @@
33 #
44 # Every author and committer becomes codician-team and the attribution trailers
55 # (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.
77 # The rewrite is deterministic: the same Diffinery history always gives the same
88 # GitHub commits, so a sync is a fast-forward unless Diffinery's own history was
99 # rewritten (then GitHub follows it). Only main is mirrored.
@@ -43,16 +43,10 @@
4343 cd "$work/repo.git"
4444 src_head=$(git rev-parse main)
4545
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-
5146 export MIRROR_NAME="$NAME" MIRROR_EMAIL="$EMAIL"
5247 git filter-repo --force --quiet --refs main --replace-refs delete-no-add \
5348 --name-callback 'return os.environ["MIRROR_NAME"].encode()' \
5449 --email-callback 'return os.environ["MIRROR_EMAIL"].encode()' \
55- --replace-text "$work/replacements.txt" \
5650 --message-callback '
5751 import re
5852 drop = re.compile(r"^(co-authored-by|claude-session|signed-off-by):|^\U0001f916 generated with \[claude code\]|^https://claude\.ai/code/session_", re.I)