rugaard/git-hooks-workflow 问题修复 & 功能扩展

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

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

rugaard/git-hooks-workflow

Composer 安装命令:

composer require rugaard/git-hooks-workflow

包简介

Workflow related Git hooks.

README 文档

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.

Parameter Description Default
branchPattern Regex pattern to search branch name for issue reference. .*\/#?([0-9]+)-
commitPattern Regex pattern to search commit message for issue reference. #([0-9]+)
forcePrefix Make sure issue reference is always prefixed with this value. #

Rugaard\GitHooks\Workflow\PreCommit\BranchNameCommand

Checks the current branch name and make sure it follows the projects naming convention.

Parameter Description Default
pattern Regex pattern to validate branch name ^(bugfix|feature|hotfix|release)\/(\d+)-([A-Za-z0-9-]+)$
renameExample Format of branch naming convention {type}/{issue-no}-{description}
whitelist Array of branch names that skips this check. ['main', 'master', 'develop']

🚓 License

This package is licensed under MIT.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-10-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固