synchot/conventionalcommit 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

synchot/conventionalcommit

Composer 安装命令:

composer require synchot/conventionalcommit

包简介

Conventional commit for php

README 文档

README

This package will use .git/hooks/commit-msg to check if git commit -m "Your message" is conventional commit compliant.

Instalation

Add to composer.json

"scripts": {
    "post-install-cmd": [
      "SyncHot\\ConventionalCommit\\Services\\ComposerBuild::copyHooks"
    ],
    "post-update-cmd": [
      "SyncHot\\ConventionalCommit\\Services\\ComposerBuild::copyHooks"
    ]
  }

run

composer require --dev synchot/conventionalcommit

How to run

On windows machines please select git-bash as default console.

git commit -m "Some message"

Something went wrong

In Your project do :

cat .git/hooks/commit-msg

If it has the same value as in vendor/synchot/conventionalcommit/resources/commit-msg Tou should be good to go, else try to copy this value.

User defined config

Create /config/packages/conventionalcommit.yaml

with contents of

/vendor/synchot/conventionalcommit/config/conventionalcommit.yaml

Modify all values to suit Your projects needs.

REMOVING THIS PLUGIN

cd <your project dir>
cd .git/hooks
rm commit-msg

CHANGELOG

https://bitbucket.org/SyncHot/conventionalcommit/src/master/CHANGELOG.md

Todos

  • Refactor
  • Write Tests

License

MIT Jędra Marcin

统计信息

  • 总下载量: 1.92k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 1

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-12-13

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固