rugaard / git-hooks-workflow
Workflow related Git hooks.
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:git-hook
Requires
- php: ^7.4|^8.0
- ext-json: *
- rugaard/git-hooks: ^1.0
README
This is a "plugin" package which seamlessly integrates with the Git Hooks package.
It will install git
hooks, that will automatically run multiple checks on your project to make sure, they follow the projects workflow and naming conventions.
📦 Installation
You install the package via Composer by using the following command:
composer require rugaard/git-hooks-workflow
📝 Configuration
To change the default configuration of one or more script, you need to have a git-hooks.config.json
file in your project root. If you don't, you can create it with the following command:
./vendor/bin/git-hooks config
Rugaard\GitHooks\Workflow\CommitMsg\IssueReferenceCommand
Checks the commit for an issue reference. Default is GitHub format.
If commit message does not contain an issue reference, the branch name will be checked to see, if an issue reference can be extracted.
Rugaard\GitHooks\Workflow\PreCommit\BranchNameCommand
Checks the current branch name and make sure it follows the projects naming convention.
🚓 License
This package is licensed under MIT.