Skip to content

Dev#47

Merged
sudheerdotai merged 3 commits into
mainfrom
dev
Dec 16, 2025
Merged

Dev#47
sudheerdotai merged 3 commits into
mainfrom
dev

Conversation

@sudheerdotai
Copy link
Copy Markdown
Collaborator

This pull request introduces commit message linting to the project by adding Commitlint and Husky. These tools help enforce consistent commit message formats and enable pre-commit and commit-msg hooks. The changes also update development dependencies and scripts in package.json to support these tools.

Commit message linting and Git hooks:

  • Added a commitlint.config.ts file to define commit message rules based on the conventional commit standard, allowing any subject case.
  • Added a .husky/commit-msg hook to run Commitlint on commit messages.
  • Added a .husky/pre-commit hook template (currently commented out lint command) for potential future use.

Development tooling and configuration:

  • Updated package.json to add @commitlint/cli, @commitlint/config-conventional, and husky as dev dependencies. [1] [2]
  • Modified package.json scripts to include a prepare script that sets up Husky hooks.

Copilot AI review requested due to automatic review settings December 16, 2025 11:07
@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented Dec 16, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
craft Ready Ready Preview, Comment Dec 16, 2025 11:38am

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request introduces commit message linting to the project using Commitlint and Husky. The implementation enforces conventional commit standards and sets up Git hooks for commit message validation, improving code quality and commit history consistency.

  • Adds Commitlint with conventional commit format validation
  • Configures Husky to run commit message linting via Git hooks
  • Updates development dependencies and adds prepare script for automatic Husky installation

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
package.json Adds commitlint and husky dev dependencies (v20.2.0 and v9.1.7 respectively) and includes prepare script for Husky setup
commitlint.config.ts Defines commit message rules based on conventional commits with customized subject case allowance
.husky/commit-msg Sets up Git hook to validate commit messages with commitlint
.husky/pre-commit Adds placeholder pre-commit hook (commented out lint command) for future use
pnpm-lock.yaml Updates lockfile with new commitlint and husky dependencies and their transitive dependencies
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

Comment thread commitlint.config.ts Outdated
Comment on lines +4 to +20
"type-enum": [
2,
"always",
[
"feat",
"fix",
"docs",
"style",
"refactor",
"perf",
"test",
"build",
"ci",
"chore",
"revert",
],
],
Copy link

Copilot AI Dec 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The type-enum rule configuration is redundant because @commitlint/config-conventional already defines these exact commit types. Since the configuration extends the conventional config, this rule override doesn't change any behavior and only adds unnecessary code.

Suggested change
"type-enum": [
2,
"always",
[
"feat",
"fix",
"docs",
"style",
"refactor",
"perf",
"test",
"build",
"ci",
"chore",
"revert",
],
],

Copilot uses AI. Check for mistakes.
@sudheerdotai sudheerdotai merged commit bd92aa0 into main Dec 16, 2025
2 checks passed
sudheerdotai added a commit that referenced this pull request Mar 12, 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.

2 participants