#633·Trellis

.trellis/hooks.local.json is documented as gitignored but is not ignored

Author: wl336Created Sep 24, 2026Updated Sep 24, 2026

Summary

scripts/hooks/linear_sync.py documents .trellis/hooks.local.json as a gitignored, machine-local configuration file, but the installed .trellis/.gitignore (templates/trellis/gitignore.txt) does not ignore it. Creating the documented file leaves local integration settings (team keys, assignee mappings) untracked and easy to commit by accident.

Reproduction (main @ e77ae89)

bash
cp packages/cli/src/templates/trellis/gitignore.txt <project>/.trellis/.gitignore
echo '{"linear": {"team": "TEAM_KEY"}}' > <project>/.trellis/hooks.local.json
git check-ignore -v .trellis/hooks.local.json   # -> not ignored
git status --short                               # -> ?? .trellis/hooks.local.json

Proposed fix

Add it to packages/cli/src/templates/trellis/gitignore.txt:

gitignore
# Machine-local hook configuration (see scripts/hooks/linear_sync.py)
hooks.local.json

Existing installs would also need the line added by trellis update.