Skip to content

Only gitignore properties.yml in template repos; real repos get it committed - #3

Merged
LevonBecker merged 1 commit into
mainfrom
add_properties_gitignore_automation_lbecker
Aug 11, 2026
Merged

Only gitignore properties.yml in template repos; real repos get it committed#3
LevonBecker merged 1 commit into
mainfrom
add_properties_gitignore_automation_lbecker

Conversation

@LevonBecker

Copy link
Copy Markdown
Owner

Summary

properties.yml was unconditionally gitignored everywhere. That's right for template repos, but
means every real repo forked from a template has to hand-edit .gitignore to commit its own
properties.yml (as fireball_orchestrator already does manually).

Changes

  • modules/setup/properties.py: new _sync_gitignore_tracking(), run on every
    inv setup.properties call — if this repo's name (from its git remote, falling back to the
    local folder) starts with template_, .gitignore is left untouched; otherwise the ignore line
    and its comment are stripped so properties.yml gets committed like any other repo config.
    Idempotent.
  • modules/setup/README.md updated to document the new behavior
  • tests/setup/test_setup_properties.py: new TestIsTemplateRepo and TestSyncGitignoreTracking
    classes

Verification

uv run --no-sync invoke fix && uv run --no-sync invoke test — 10/10 pylint, ruff clean, 14/14
pytest passed.

…mmitted

properties.yml was unconditionally gitignored everywhere, which made sense for template repos
(this one and its siblings) but meant every real repo forked from a template had to manually edit
.gitignore to commit its own properties.yml (as fireball_orchestrator already does by hand).

modules/setup/properties.py now runs _sync_gitignore_tracking() on every `inv setup.properties`
call: if this repo's name (from its git remote, or the local folder as fallback) starts with
`template_`, .gitignore is left untouched; otherwise the ignore line and its explanatory comment
are stripped so properties.yml gets committed like any other repo config. Idempotent — a repo
that's already had the line removed, or never had it, is left alone.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@LevonBecker LevonBecker self-assigned this Aug 11, 2026
@LevonBecker
LevonBecker merged commit 7315593 into main Aug 11, 2026
5 checks passed
@LevonBecker
LevonBecker deleted the add_properties_gitignore_automation_lbecker branch August 11, 2026 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant