Skip to content

Instantly share code, notes, and snippets.

View JonyFang's full-sized avatar
:octocat:
Focusing

JonyFang JonyFang

:octocat:
Focusing
View GitHub Profile
{"sig":"3d1299da5893bfe28a832b9566a2253edda02998aabcfcc0a8df83f9a317e822b0b5496a27f1bcd48ef72d66cf6480d4405b7350df9d258ac454af64c7647d170","msghash":"c6c9411a01cd60a2c9e6f5f8e075e364f5f1868d2b6d07699245994090e0f811"}
@JonyFang
JonyFang / commit-msg.py
Created February 27, 2018 03:18
使用 commit-msg 脚本文件对于对应格式进行校验,来保证 Commit 信息的规则化
#!/usr/bin/env python3
import sys, os, re
from subprocess import check_output
class bcolors:
SUCCESS = '\033[92m'
WARNING = '\033[93m'
FAILURE = '\033[91m'
ENDC = '\033[0m'