Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[idea] Common Git Hooks #13

Open
3 tasks
at15 opened this issue Dec 30, 2016 · 4 comments
Open
3 tasks

[idea] Common Git Hooks #13

at15 opened this issue Dec 30, 2016 · 4 comments

Comments

@at15
Copy link
Member

at15 commented Dec 30, 2016

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 die in PHP code before push
  • Remove f**k before commit
  • Abort commit if FIXME and TODO are presented

Required skills

  • shell/python, I prefer python over shell
  • intermediate understanding of git
@arrowrowe
Copy link
Member

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

@JasonQSY
Copy link
Member

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
Copy link
Member

just for curiosity, why php?...

@JasonQSY
Copy link
Member

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

@at15 at15 mentioned this issue Nov 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants