Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request adds commit linting infrastructure to enforce Conventional Commits format in the repository. The implementation uses husky for Git hooks and commitlint to validate commit messages both locally and in CI/CD.
Changes:
- Added
huskyandcommitlintdependencies with configuration to enforce Conventional Commits format - Created Git hooks for pre-commit (lint), pre-push (test), and commit-msg (commitlint) validation
- Added GitHub Actions workflow to validate commit messages in CI/CD
- Updated documentation in CONTRIBUTING.md and copilot-instructions.md to explain the commit message format requirements
Reviewed changes
Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| package.json | Added commitlint/husky dependencies and prepare script to initialize husky |
| package-lock.json | Updated with new dependencies and version bump to 0.5.1 |
| commitlint.config.js | Configuration for commitlint extending conventional config with ignore rule for Copilot Autofix |
| .husky/pre-commit | Git hook to run linting before commits |
| .husky/pre-push | Git hook to run tests before pushing |
| .husky/commit-msg | Git hook to validate commit message format |
| .github/workflows/commitlint.yml | GitHub Actions workflow to validate commits in CI |
| .github/copilot-instructions.md | Added commit message format guidelines for Copilot |
| .github/CONTRIBUTING.md | Updated commit guidelines with detailed Conventional Commits explanation |
b7a4cae to
f7c1f1e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
WIP