On each merge to master of Wikibase.git we should have some automated push to the new "package repo".
- Install git-filter-repo (it’s a single Python file)
- Clone Wikibase.git
- Run:
git-filter-repo --path=lib/{includes,tests/phpunit}/{c,C}hanges/ --path lib/packages/wikibase/changes/ --path .mailmap --path-rename=lib/includes/{c,C}hanges:src --path-rename=lib/tests/phpunit/{c,C}hanges:tests --path-rename lib/packages/wikibase/changes/: --message-callback 'return re.sub(b"^changes: ", b"", message)'
- Add a Git remote for the package repo
- Push the master branch of the current repo to the main branch of the package repo