chore: migrate pre-push hook to pre-commit framework
Add pre-push stage hooks: - run-tests: execute all test-*.sh files and bats suite - check-manifests: validate marketplace.json and plugin.json paths Remove hardcoded .git/hooks/pre-push. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -34,6 +34,24 @@ repos:
|
|||||||
|
|
||||||
- repo: local
|
- repo: local
|
||||||
hooks:
|
hooks:
|
||||||
|
- id: run-tests
|
||||||
|
name: Run test suite
|
||||||
|
description: Run all test-*.sh files and bats suite
|
||||||
|
entry: bash tests/run-tests.sh
|
||||||
|
language: system
|
||||||
|
stages: [pre-push]
|
||||||
|
pass_filenames: false
|
||||||
|
always_run: true
|
||||||
|
|
||||||
|
- id: check-manifests
|
||||||
|
name: Check plugin manifests
|
||||||
|
description: Validate marketplace.json and plugin.json paths
|
||||||
|
entry: bash scripts/check-manifests.sh
|
||||||
|
language: system
|
||||||
|
stages: [pre-push]
|
||||||
|
pass_filenames: false
|
||||||
|
always_run: true
|
||||||
|
|
||||||
- id: skill-frontmatter
|
- id: skill-frontmatter
|
||||||
stages: ['pre-commit']
|
stages: ['pre-commit']
|
||||||
name: SKILL.md frontmatter validation
|
name: SKILL.md frontmatter validation
|
||||||
|
|||||||
Reference in New Issue
Block a user