Skip to content

HYPERFLEET-878 - feat: setup pre-commit hooks registry with commitlint#1

Closed
rafabene wants to merge 1 commit intoopenshift-hyperfleet:mainfrom
rafabene:HYPERFLEET-878
Closed

HYPERFLEET-878 - feat: setup pre-commit hooks registry with commitlint#1
rafabene wants to merge 1 commit intoopenshift-hyperfleet:mainfrom
rafabene:HYPERFLEET-878

Conversation

@rafabene
Copy link
Copy Markdown

@rafabene rafabene commented Apr 6, 2026

Summary

  • Add centralized pre-commit hooks registry with .pre-commit-hooks.yaml defining hyperfleet-commitlint hook
  • Configure commitlint to enforce the HyperFleet Commit Standard (HYPERFLEET-XXX - <type>: <subject> with optional JIRA prefix, 72-char limit, 11 commit types)
  • Include wrapper script (hooks/commitlint-wrapper.js) to resolve bundled config when run by pre-commit in consuming repos
  • Add Makefile with install, test (valid + invalid commit message validation), and lint (prettier) targets
  • Add OWNERS, CLAUDE.md, README with installation and usage instructions

Test plan

  • Run make install && make test — all 17 test cases pass (13 valid, 4 invalid)
  • Run make lint — no formatting issues
  • Add this repo to a consuming repo's .pre-commit-config.yaml and verify hyperfleet-commitlint hook runs on commit-msg stage

Closes: HYPERFLEET-878

Add centralized pre-commit hooks registry for the HyperFleet ecosystem.
Includes commitlint configuration enforcing the HyperFleet Commit Standard
(Conventional Commits with optional JIRA prefix), wrapper script for
bundled config resolution, and Makefile with validation tests.
@rafabene
Copy link
Copy Markdown
Author

rafabene commented Apr 7, 2026

Closing this to use a Go version #2

@rafabene rafabene closed this Apr 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant