Skip to content

Chore/setup pre commit hooks#133

Open
rayhunts wants to merge 2 commits intomainfrom
chore/setup-pre-commit-hooks
Open

Chore/setup pre commit hooks#133
rayhunts wants to merge 2 commits intomainfrom
chore/setup-pre-commit-hooks

Conversation

@rayhunts
Copy link
Copy Markdown
Collaborator

Description 📋

Configure moon VCS hooks for pre-commit linting/formatting and commit-msg conventional commits enforcement.

  • Add pre-commit hooks (moon run :lint --affected --status=staged and moon run :format --affected --status=all) and commit-msg hook (conventional commits validation) to .moon/workspace.yml
  • Add lint and format tasks with affectedFiles: true to apps/react-app/moon.yml as reference implementation
  • Generate hook scripts via moon sync hooks into .moon/hooks/
  • Add .moon/hooks to .gitignore
  • Fix biome linter includes glob pattern

How to activate (one-time per developer)

moon sync hooks

Fixes #

Type of change 🤔

  • Feature (non breaking change which adds functionality)
  • Bugfix (non breaking change which resolve an issue)
  • Breaking Change (a change which would cause existing functionality to not work as expected)
  • Documentation (a change to documentation)

Submission checklist ✅

  • I have performed a self review of my changes
  • I have updated the documentation where relevant
  • My changes are well written and all ci is passing

@rayhunts rayhunts requested a review from riipandi April 23, 2026 06:01
@rayhunts rayhunts self-assigned this Apr 23, 2026
@rayhunts rayhunts added the enhancement New feature or request label Apr 23, 2026
@rayhunts rayhunts linked an issue Apr 23, 2026 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Setup Pre-commit Hooks in ZOG Monorepo Using Moon VCS Hooks

1 participant