feat(commitlint): added the package codes #1
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.
This pull request introduces a comprehensive setup for a Laravel package, "Laravel Commit Lint," which enforces Conventional Commits via Git hooks and CI workflows. The changes include documentation, Git hooks, CI/CD workflows, and package configuration files. Below is a summary of the most important changes grouped by theme:
Documentation and Guidelines
README.mdexplaining the package's purpose, features, installation, usage, and troubleshooting. It includes examples of valid and invalid commit messages and instructions for customization.CONTRIBUTING.mdfile with guidelines for contributing, including prerequisites, commit message format, and development setup.SECURITY.mdfile outlining the security policy, including how to report vulnerabilities and supported versions.Git Hooks
commit-msghook to enforce Conventional Commits by validating commit messages against a regex pattern. It provides clear feedback for invalid messages and skips special commit types like merge, WIP, and revert.pre-pushhook to run PHPUnit tests and enforce a minimum code coverage threshold of 80%. Pushes are blocked if the threshold is not met.Continuous Integration (CI) and Release Management
ci.ymlworkflow to validate commit messages and run PHPUnit tests on push and pull requests. It includes automated PR comments for validation results.release-please.ymlworkflow for automated release management using the Release Please GitHub Action..release-please-manifest.jsonfile to track the current version for release automation.Package Configuration
composer.jsonto define package metadata, dependencies, and autoload configuration. It includes support for Laravel service providers and PHPUnit for testing.phpunit.xmlconfiguration file for PHPUnit, including coverage reporting in Clover and HTML formats.Changelog
CHANGELOG.mdto document notable changes, starting with the initial release.