-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitmessage
79 lines (78 loc) · 2.1 KB
/
gitmessage
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
subject line
# NAME
# gitmessage - template for git commit messages
#
# SYNOPSIS
# FILE OPTION: @DIR
# CODE OPTION: Contents @FILE
# [ticketId][test|part|fix][OPTION] Contents @FILE
#
#
# DESCRIPTION
# A systematic way of mangaing git commit messages.
# Use git verbs, which is an alias, to see a list of commit verbs
#
# SEMANTIC OPTION
#
# [ticket#]feat(feature/module): Add/Rem/Mod
# [ticket?]docs(module): Add/Rem/Mod comments, jsdocs
# [ticket?]test(module): Add/Rem/Mod test cases
# [ticket#]chore(build/webpack/grunt/3rdparty): Add/Rem/Mod test cases
# [ticket#]refactor(feature/module): Add/Rem/Mod test cases
#
# [bug#]fix: Add/Rem/Mod test cases
# [bug#]part: Add/Rem/Mod test cases
#
#
# FILE MANIPULATION OPTION
# INC = include
# INC @newfiles
# INC @newdir/
# REN = rename
# REN @oldfile -> @newfile
# REN @olddir/ -> @newdir/
# COP = copy
# COP @oldfile -> @newfile
# COP @olddir/ -> @newdir/
# MOV = move
# MOV @oldfile -> @newfile
# MOV @olddir/ -> @newdir/
# DEL = delete
# DEL @oldfiles
# DEL @olddir/
# UPD = update from a third-party repo
# UPD @third-party repo
#
# CODE OPTION
# Add = add new functions/features
# Add myFunc() @file
# Rem = remove functions/features
# Rem myFunc() @file
# Mod = modify functions/features
# Mod myFunc() @file
# Ref = refactor code without add/remove/modifying any feature
# Ref myFunc() @file
#
# Com = comment
# Com myFunc() @file
# Com TODO @file
#
# BUG HANDLING
# [ticketId][new|test|part|fix][Add|Rem|Mod|Ref]Contents @files
# [#250001][new]Rem buggyFunc() @file
# [#253012][fix]Rem buggyFunc() @file
# [#254238][part]Rem buggyFunc() @file
# [#259492][test]Add magicFunc(); Rem maybeBuggyFunc() @file
#
# Bug = bug
# Bug #253012
#
# Version control:
# _Ver = Release version
#
# GIT DEFAULTS
# Merge
#
# Misc
# OCD = minor whitespace/layout changes that affects nothing in terms of
# functionality