Skip to content

A commit-hook which will error check a standard Git commit message.

License

Notifications You must be signed in to change notification settings

jain-nikunj/git-commit-hook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

git-commit-hook

A commit-hook which will error check a standard Git commit message.
Built by Nikunj Jain under the guidance of Hezheng Yin.

For Users

Depending on your python version, copy the executable file pythonX/commit-msg into /path/to/your/repo/.git/hooks/
The format for commit messages is as follows:

COMMIT_TYPE: COMMIT_SUBJECT  
COMMIT BODY  

Commit type may include: 'feat', 'fix', 'maint', 'impr'
Note: An extra commit type, 'quick', is available if you are not working on master.
The executable will always prompt you regarding whether you were Pair Programming or not, and will prompt for and append the Driver and Observer to the end of the commit body if you answer yes.

(feat) New Feature
A new feature
(fix) Bug Fix
Bug fixes
(maint) Maintenance
Any maintenance like:
(docs) Documentation changes
(tests) Adding missing or correcting existing tests
(chore) Changes to the build process or auxiliary tools and libraries
(impr) Improvements like:
(style) Changes that do not affect the meaning of the code (white-space, formatting, semi-colons, etc
(performance) Changes that affect the performance of the code
(refactoring) Refactoring changes in the code
(quick) Quick Commit
A quick and dirty commit, to be updated later (for things like daily stash of changes)

For Developers Looking to Add to the Project

The file commit-msg.py contains the scripting necessary for basic regex checking. To generate the executable, execute: pyinstaller commit-msg.py --onefile

About

A commit-hook which will error check a standard Git commit message.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages