Skip to content

[minion] Detect external hook managers during enable#117

Open
jcleira wants to merge 1 commit intomainfrom
minion/detect-external-hooks-cli-agent
Open

[minion] Detect external hook managers during enable#117
jcleira wants to merge 1 commit intomainfrom
minion/detect-external-hooks-cli-agent

Conversation

@jcleira
Copy link
Copy Markdown
Member

@jcleira jcleira commented Mar 31, 2026

Objective

During partio enable, detect if external Git hook managers (Husky, Lefthook,
Overcommit) are already installed in the repository. If detected, warn the user
about potential conflicts with Partio's own hook installation.

Detection should check for:

  • Husky: .husky/ directory or prepare script in package.json
  • Lefthook: lefthook.yml or .lefthook.yml in repo root
  • Overcommit: .overcommit.yml in repo root

The warning should be informational (not blocking). Suggest running partio doctor
for more details.

Acceptance Criteria

  • partio enable warns when Husky .husky/ directory is detected
  • partio enable warns when lefthook.yml is detected
  • partio enable warns when .overcommit.yml is detected
  • Warning is informational, does not block hook installation
  • make test passes in cli/
  • make lint passes in cli/
  • docs/cli/commands.mdx updated with hook conflict info if applicable

Automated PR by partio-io/cli · Task: detect-external-hooks-cli-agent

Created by an unattended coding agent. Please review carefully.

Automated by partio-io/cli (task: detect-external-hooks-cli-agent)

Co-Authored-By: Claude <noreply@anthropic.com>
Entire-Checkpoint: 9e34a50a5fd4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant