Last active
June 19, 2019 08:41
-
-
Save alper/22aadce3015cb15c3eafc667cdf4ae79 to your computer and use it in GitHub Desktop.
Revisions
-
alper revised this gist
Jun 19, 2019 . 1 changed file with 0 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,6 @@ #!/usr/bin/env python3 import sys commit_msg_filepath = sys.argv[1] -
alper created this gist
Jun 19, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ #!/usr/bin/env python3 import sys import re commit_msg_filepath = sys.argv[1] with open(commit_msg_filepath, 'r+') as fh: lines = fh.readlines() if '#' not in lines[0]: print("No issue number in first line of commit message. Stopping.") sys.exit(1)