-
Notifications
You must be signed in to change notification settings - Fork 0
Warn when shared config file has uncommitted changes #178
Copy link
Copy link
Open
Labels
Description
Summary
After partio enable or partio configure modifies .partio/settings.json, print a hint reminding the user to commit the file so that team members share the same configuration.
Why
When users configure team-shared settings (like checkpoint strategy or agent type), forgetting to commit .partio/settings.json means teammates won't pick up those settings. This is especially easy to miss because the file is created/modified by CLI commands rather than edited by hand. A simple hint at the right moment prevents configuration drift across the team.
Source
- Origin: fix: hint to commit settings.json when using checkpoint remote entireio/cli#861 (hint to commit settings.json when using checkpoint remote)
- Detected from:
entireio-cli-pulls
Target Repos
cli
Acceptance Criteria
- After
partio enableorpartio configuremodifies.partio/settings.json, a hint is printed reminding the user to commit the file if it contains team-shared settings - The hint only appears when
.partio/settings.jsonhas uncommitted changes (not when it is already tracked and clean) - The hint is suppressed in non-interactive contexts (e.g., CI) or when stdout is not a terminal
- A test verifies the hint appears after a config modification when the file is untracked
- A test verifies the hint does not appear when the file is already committed and unchanged
Context Hints
cli/cmd/partio/cli/internal/config/
Comment /minion build or add the minion-approved label to begin implementation.
Reactions are currently unavailable