[idea] Common Git Hooks
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.
- [ ] Remove
diein PHP code before push - [ ] Remove
f**kbefore commit - [ ] Abort commit if
FIXMEandTODOare presented
Required skills
- shell/python, I prefer python over shell
- intermediate understanding of git
感觉都是现成的, 组装一个套路写个一键安装脚本 (雾) 就可以了?
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.
just for curiosity, why php?...
@arrowrowe Just because we need it on tongqu-web (5.0) .... For other projects, no idea.