damianopetrungaro/php-commitizen
最新稳定版本:v0.2.0
Composer 安装命令:
composer require damianopetrungaro/php-commitizen
包简介
Help writing Git commit following conventional commit specs
README 文档
README
Commitizen is a tool built for create good commits for a clean and readable git history.
This tool follow the Conventional Commit specs and some best practices described in this slides
Installation and usage
You can install it easily with composer
$ php composer.phar require --dev damianopetrungaro/php-commitizen
Usage is simple too
$ php vendor/bin/php-commitizen commit
You can also
- pass a flag for add all the file to the stage:
-a - specify a custom configuration file adding the file path as argument
You can ask for more information using: $ php vendor/bin/php-commitizen commit --help
Configuration file
The configuration file must return an array (or partial override)
<?php
return [
'type' => [
'lengthMin' => 1, // Min length of the type
'lengthMax' => 5, // Max length of the type
'acceptExtra' => false, // Allow adding types not listed in 'values' key
'values' => ['feat', 'fix'], // All the values usable as type
],
'scope' => [
'lengthMin' => 0, // Min length of the scope
'lengthMax' => 10, // Max length of the scope
'acceptExtra' => true, // Allow adding scopes not listed in 'values' key
'values' => [], // All the values usable as scope
],
'description' => [
'lengthMin' => 1, // Min length of the description
'lengthMax' => 44, // Max length of the description
],
'subject' => [
'lengthMin' => 1, // Min length of the subject
'lengthMax' => 50, // Max length of the subject
],
'body' => [
'wrap' => 72, // Wrap the body at 72 characters
],
'footer' => [
'wrap' => 72, Wrap the footer at 72 characters
],
];
统计信息
- 总下载量: 81.13k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 121
- 点击次数: 1
- 依赖项目数: 21
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-02-21