-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitrules.json
193 lines (193 loc) · 5.88 KB
/
gitrules.json
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
{
"setup-files": [
{
"path": "files/chapters/chapter-5.txt",
"contents": "Doug noticed something lying on the floor of his shop"
},
{
"path": "files/chapters/chapter-6.txt",
"contents": "Betty woke up with a terrible."
},
{
"path": "files/chapters/chapter-7.txt",
"contents": "Gantt bought a jet-ski and flew out to Florida."
}
],
"rules": [
{
"rule": "text",
"separator": "-",
"width": 50,
"heading": "ADDING THE NEXT TWO CHAPTERS",
"double-space": true
},
{
"rule": "commit-with-message-updated-file",
"score-if-correct": 5,
"path": "files/chapters/chapter-5.txt",
"contents": "Chapter 5 complete",
"ignore-case": true,
"alternative-title": "Commit chapter 5 with the correct message."
},
{
"rule": "commit-with-message-doesnt-update-file",
"score-if-correct": 5,
"path": "files/chapters/chapter-6.txt",
"contents": "Chapter 5 complete",
"ignore-case": true,
"failure-message": "Chapter 5 and 6 were committed together instead of separately",
"alternative-title": "Commit chapter 5 separately from 6."
},
{
"rule": "commit-with-message-updated-file",
"score-if-correct": 5,
"path": "files/chapters/chapter-6.txt",
"contents": "Chapter 6 complete",
"ignore-case": true,
"alternative-title": "Commit chapter 6 with the correct message."
},
{
"rule": "file-untracked-in-head",
"score-if-correct": 5,
"path": "files/chapters/chapter-7.txt",
"ignore-case": true,
"alternative-title": "Don't commit chapter 7."
},
{
"rule": "text",
"separator": "-",
"width": 50,
"heading": "REMOVE HIS APPENDIX",
"double-space": true
},
{
"rule": "file-untracked-in-head",
"path": "files/chapters/appendix-a.txt",
"score-if-correct": 5,
"alternative-title": "Appendix has been removed."
},
{
"rule": "commit-with-message-updated-file",
"path": "files/chapters/appendix-a.txt",
"contents": "Ignore appendices",
"ignore-case": true,
"score-if-correct": 5,
"alternative-title": "Appendix removed with correct message."
},
{
"rule": "ignored",
"path": "files/chapters/appendix-whatever.txt",
"failure-message": "You must ignore all appendix files",
"score-if-correct": 5,
"alternative-title": "Git ignores appendix files"
},
{
"rule": "commit-with-message-updated-file",
"path": ".gitignore",
"contents": "Ignore appendices",
"ignore-case": true,
"score-if-correct": 5,
"alternative-title": "Ignoring appendices was committed as a single commit."
},
{
"rule": "text",
"separator": "-",
"width": 50,
"heading": "SPLITTING THE BOOK INTO TWO VOLUMES",
"double-space": true
},
{
"rule": "commit-with-message-has-tag",
"tag": "one-volume-version",
"contents": "Ignore appendices",
"ignore-case": true,
"score-if-correct": 5,
"alternative-title": "A tag was made before splitting the volumes"
},
{
"rule": "file-untracked-in-head",
"score-if-correct": 5,
"path": "files/chapters/chapter-1.txt",
"ignore-case": true,
"alternative-title": "Chapter 1 is no longer in files/chapters."
},
{
"rule": "file-has-hash-in-head",
"score-if-correct": 5,
"path": "files/books/book-1/chapters/chapter-1.txt",
"hash": "b5aa92d80bf45e2c28a3ac1ce654d186e52e95e8",
"alternative-title": "Chapter 1 is moved into book 1."
},
{
"rule": "commit-with-message-has-tag",
"tag": "two-volume-version",
"contents": "Create two books",
"ignore-case": true,
"score-if-correct": 5,
"alternative-title": "A tag was made after splitting the volumes"
},
{
"rule": "text",
"separator": "-",
"width": 50,
"heading": "A RE-WRITE",
"double-space": true
},
{
"rule": "branch-exists",
"branch": "exotic",
"score-if-correct": 5,
"alternative-title": "The 'exotic' branch has been created."
},
{
"rule": "file-contains-in-branch",
"branch": "exotic",
"path": "files/books/book-2/chapters/chapter-4.txt",
"contents": "ice",
"ignore-case": true,
"score-if-correct": 5,
"alternative-title": "Car has changed to an ice-cream van in exotic chapter 4"
},
{
"rule": "commit-with-message-was-made-on-branch",
"branch": "exotic",
"contents": "Change book to exotic",
"ignore-case": true,
"score-if-correct": 5,
"alternative-title": "The ice-cream commit was done on the right branch"
},
{
"rule": "commit-with-message-was-made-on-branch",
"branch": "master",
"contents": "Remove the car",
"ignore-case": true,
"score-if-correct": 5,
"alternative-title": "Removing the car was done on the master branch"
},
{
"rule": "commit-with-message-updated-file",
"path": "files/books/book-2/chapters/chapter-4.txt",
"contents": "Remove the car",
"ignore-case": true,
"alternative-title": "Removing the car was done in the right commit",
"score-if-correct": 5
},
{
"rule": "commit-with-message-updated-file",
"path": "files/books/book-2/chapters/chapter-4.txt",
"contents": "Keep ice",
"ignore-case": true,
"alternative-title": "The merge conflict was resolved and committed with the correct message",
"score-if-correct": 5
},
{
"rule": "file-contains-in-branch",
"branch": "master",
"contents": "ice-cream",
"path": "files/books/book-2/chapters/chapter-4.txt",
"ignore-case": true,
"score-if-correct": 10,
"alternative-title": "The merge conflict was resolved with ice-cream"
}
]
}