Skip to content

Commit Linter is a GitHub Action that enforces structured commit messages using the Conventional Commits standard. It helps maintain a clean and readable commit history by automatically checking commit messages in pull requests.

License

Notifications You must be signed in to change notification settings

Kyour-Fars/commit-linter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

commit-linter

Overview

Commit Linter is a GitHub Action that ensures all commit messages follow a structured format before they are merged into the main branch. By enforcing a consistent commit style, this tool improves readability, makes versioning easier, and keeps the project history clean.

Why Use This?

Ensures commit messages follow a standardized format (e.g., Conventional Commits).

Helps developers write meaningful commit messages.

Improves collaboration and project maintainability.

Automatically checks commits in pull requests.

Commit Message Format

This linter enforces the Conventional Commits standard:

():

Allowed Types

feat: A new feature

fix: A bug fix

docs: Documentation updates

style: Code style changes (formatting, missing semicolons, etc.)

refactor: Code restructuring without behavior changes

test: Adding or modifying tests

chore: Maintenance tasks (dependencies, build process updates)

Examples of Correct Commits

✅ feat(auth): add OAuth login support

✅ fix(ui): resolve button alignment issue

✅ docs(readme): update installation steps

Examples of Incorrect Commits

❌ fixed bug in login (Missing type and scope)

❌ updated README (Doesn’t specify the change)

About

Commit Linter is a GitHub Action that enforces structured commit messages using the Conventional Commits standard. It helps maintain a clean and readable commit history by automatically checking commit messages in pull requests.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published