File tree Expand file tree Collapse file tree 2 files changed +16
-5
lines changed Expand file tree Collapse file tree 2 files changed +16
-5
lines changed Original file line number Diff line number Diff line change 66from utils import angular_convention
77from utils import changelog_convention
88from utils import symphony_convention
9+ from utils import just_message
910
1011tag = ''
1112tag_is_lowercase = False
3031 elif convention == 'symphony' :
3132 print ('You are using the %s convention' % convention )
3233 symphony_convention ()
34+ elif convention == 'none' :
35+ just_message ()
3336 else :
3437 custom_convention ()
3538 except YAMLError as exc :
3639 print (exc )
3740
3841else :
3942 print ("No config files found!\n Running default script..." )
40- opt = int (input ("""
43+ opt = int (raw_input ("""
4144 what type of commit convention are you using?
4245
43- 1- Karma/Angular
44- 2- Conventional changelog
45- 3- Symfony CMF
46- """ ))
46+ default: Just the message
47+ 1: Karma/Angular
48+ 2: Conventional changelog
49+ 3: Symfony CMF
50+ """ ) or 4 )
4751
4852 if opt == 1 :
4953 angular_convention ()
5054 elif opt == 2 :
5155 changelog_convention ()
5256 elif opt == 3 :
5357 symphony_convention ()
58+ elif opt == 4 :
59+ just_message ()
Original file line number Diff line number Diff line change @@ -50,5 +50,10 @@ def symphony_convention():
5050 tag = tag .capitalize ()
5151 os .system ("git commit -m '[%s] %s'" % (tag , msg ))
5252
53+ def just_message ():
54+ msg = str (input ("commit message: " ))
55+ os .system ("git commit -m '%s'" % msg .capitalize ())
56+
57+ # FUTURE: implement
5358def custom_convention ():
5459 pass
You can’t perform that action at this time.
0 commit comments