Cross-cutting files synced across my public repos
- Python 100%
| .gitignore | ||
| CONTRIBUTING.md | ||
| README.md | ||
| sync.py | ||
moritz-meta
Cross-cutting files that should be identical across all my public repos on
git.moritz.run. The canonical version lives
here; sync.py propagates changes to every public, non-archived repo via the
Forgejo content API.
Files
CONTRIBUTING.md— explains how to contribute to a self-hosted repo. Forgejo picks this filename up and shows it as a banner on issue / PR creation pages.sync.py— sync script (idempotent, supports--dry-run).
Sync
# token at https://git.moritz.run/user/settings/applications (scope: write:repository)
export FORGEJO_TOKEN=...
python sync.py --dry-run # preview
python sync.py # apply
Edit and roll out
$EDITOR CONTRIBUTING.md
git commit -am "tweak CONTRIBUTING wording"
python sync.py
git push