dyweb / mos

MOOC & Open Source Group
Apache License 2.0
18 stars 1 forks source link

[idea] Common Git Hooks #13

Open at15 opened 7 years ago

at15 commented 7 years ago

idea issuer: infamous @at15

Related issues: gitTq tongqu/tongqu-web/issues/19

Description

Currently, a lot of projects need to enforce commit message and code style, so instead of writing shell scripts for each project, it would be a better idea to have a set of configurable Git Hooks. Though it could be part of Ayi, Ayi still got a bunch of crap to deal with now.

i.e.

Required skills

arrowrowe commented 7 years ago

感觉都是现成的, 组装一个套路写个一键安装脚本 (雾) 就可以了?

JasonQSY commented 7 years ago

Temporarily, we maintain a dyweb/php-git-hooks since original php-git-hooks does not support custom commit-msg error message. I only change the message directly now. Also, I think we can write a tool or implement the custom message and other features for php-git-hooks.

arrowrowe commented 7 years ago

just for curiosity, why php?...

JasonQSY commented 7 years ago

@arrowrowe Just because we need it on tongqu-web (5.0) .... For other projects, no idea.