A curated repo that merges official templates from github/gitignore. Current combination: Unity + Python.
| File | Description |
|---|---|
unity_python.gitignore |
Merged Unity / Python templates, split into Section 1: Unity / Section 2: Python banners; each banner carries a ?raw=true source link for direct download |
scripts/merge_gitignores.py |
Merge script: fetches both official templates from main and regenerates the combined file |
.github/workflows/sync-upstream.yml |
GitHub Action that keeps the combined file in sync (daily cron + fork-sync push trigger) |
- Triggers:
scheduleonce a day (21:17 UTC) + manualworkflow_dispatch - Flow: fetch official
Unity.gitignore/Python.gitignore→ run the merge script → compare against the committed file - Change detection is content-based: upstream commits that do not touch these two files produce no empty commit; any real change is committed and pushed as
agent - The cron pulls upstream content directly via raw.githubusercontent.com, so it works regardless of fork sync; this fork's
mastershares no history with upstream, so GitHub "Sync fork" cannot update it anyway - Scheduled workflows only run from the repository's default branch: keep
masteras default in Settings → Branches, or the cron will silently stop
python scripts/merge_gitignores.py # regenerate unity_python.gitignore
python scripts/merge_gitignores.py --check # check only, exit 1 on difference- GitHub disables scheduled workflows after 60 days of repository inactivity; re-enable manually if that happens
- The workflow declares
permissions: contents: write; if org/repo policy restricts workflows to read-only, allow read/write under Settings → Actions → General → Workflow permissions