-
-
Notifications
You must be signed in to change notification settings - Fork 301
Commit 968a900
feat(commit): implement questions 'filter' support with handlers
Supported APIs:
- multiple_line_breaker
- required_validator
- required_validator_scope
- required_validator_subject_strip
- required_validator_title_strip
Example YAML configurations:
---
commitizen:
name: cz_customize
customize:
questions:
- ...
- type: input
name: scope
message: 'Scope of the change :'
filter: 'required_validator_scope'
default: ''
- type: input
name: subject
message: 'Title of the commit (starting in lower case and without period) :'
filter: 'required_validator_subject_strip'
default: ''
- type: input
name: body
message: 'Additional contextual message (Empty to skip) :'
default: 'Issue: #...'
filter: 'multiple_line_breaker'
---
Signed-off-by: Adrian DC <radian.dc@gmail.com>1 parent 5e08775 commit 968a900
File tree
4 files changed
+113
-5
lines changed- commitizen
- commands
- cz
- docs
- tests
4 files changed
+113
-5
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 | - | ||
11 | + | ||
12 | + | ||
13 | + | ||
14 | + | ||
15 | + | ||
16 | + | ||
17 | + | ||
18 | + | ||
12 | 19 |
| |
13 | 20 |
| |
14 | 21 |
| |
| |||
52 | 59 |
| |
53 | 60 |
| |
54 | 61 |
| |
62 | + | ||
63 | + | ||
64 | + | ||
65 | + | ||
66 | + | ||
67 | + | ||
68 | + | ||
69 | + | ||
70 | + | ||
71 | + | ||
72 | + | ||
73 | + | ||
74 | + | ||
75 | + | ||
76 | + | ||
77 | + | ||
78 | + | ||
55 | 79 |
| |
56 | 80 |
| |
57 | 81 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
15 | + | ||
16 | + | ||
17 | + | ||
18 | + | ||
19 | + | ||
20 | + | ||
21 | + | ||
22 | + | ||
23 | + | ||
24 | + | ||
25 | + | ||
26 | + | ||
15 | 27 |
| |
16 | 28 |
| |
17 | 29 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
175 | 175 |
| |
176 | 176 |
| |
177 | 177 |
| |
178 | - | ||
178 | + | ||
179 | 179 |
| |
180 | 180 |
| |
181 | 181 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | + | ||
2 | 3 |
| |
4 | + | ||
3 | 5 |
| |
4 | 6 |
| |
7 | + | ||
5 | 8 |
| |
6 | 9 |
| |
7 | 10 |
| |
| |||
36 | 39 |
| |
37 | 40 |
| |
38 | 41 |
| |
42 | + | ||
43 | + | ||
44 | + | ||
45 | + | ||
46 | + | ||
47 | + | ||
39 | 48 |
| |
40 | 49 |
| |
41 | 50 |
| |
42 | 51 |
| |
52 | + | ||
43 | 53 |
| |
44 | 54 |
| |
45 | 55 |
| |
| |||
89 | 99 |
| |
90 | 100 |
| |
91 | 101 |
| |
102 | + | ||
103 | + | ||
104 | + | ||
105 | + | ||
106 | + | ||
107 | + | ||
92 | 108 |
| |
93 | 109 |
| |
94 | 110 |
| |
95 | - | ||
111 | + | ||
112 | + | ||
96 | 113 |
| |
97 | 114 |
| |
98 | 115 |
| |
| |||
139 | 156 |
| |
140 | 157 |
| |
141 | 158 |
| |
159 | + | ||
160 | + | ||
161 | + | ||
162 | + | ||
142 | 163 |
| |
143 | 164 |
| |
144 | 165 |
| |
166 | + | ||
145 | 167 |
| |
146 | 168 |
| |
147 | 169 |
| |
| |||
330 | 352 |
| |
331 | 353 |
| |
332 | 354 |
| |
355 | + | ||
356 | + | ||
357 | + | ||
358 | + | ||
359 | + | ||
360 | + | ||
361 | + | ||
333 | 362 |
| |
334 | 363 |
| |
335 | 364 |
| |
| |||
437 | 466 |
| |
438 | 467 |
| |
439 | 468 |
| |
440 | - | ||
469 | + | ||
441 | 470 |
| |
442 | 471 |
| |
443 | 472 |
| |
| |||
450 | 479 |
| |
451 | 480 |
| |
452 | 481 |
| |
453 | - | ||
482 | + | ||
483 | + | ||
484 | + | ||
485 | + | ||
486 | + | ||
487 | + | ||
488 | + | ||
489 | + | ||
490 | + | ||
491 | + | ||
492 | + | ||
493 | + | ||
454 | 494 |
| |
455 | 495 |
| |
456 | 496 |
| |
| |||
460 | 500 |
| |
461 | 501 |
| |
462 | 502 |
| |
503 | + | ||
504 | + | ||
505 | + | ||
506 | + | ||
507 | + | ||
508 | + | ||
509 | + | ||
510 | + | ||
511 | + | ||
512 | + | ||
513 | + | ||
514 | + | ||
515 | + | ||
516 | + | ||
517 | + | ||
518 | + | ||
519 | + | ||
520 | + | ||
521 | + | ||
522 | + | ||
523 | + | ||
524 | + | ||
525 | + | ||
526 | + | ||
527 | + | ||
528 | + | ||
529 | + | ||
530 | + | ||
531 | + | ||
532 | + | ||
533 | + | ||
534 | + | ||
463 | 535 |
| |
464 | 536 |
| |
465 | 537 |
| |
|
0 commit comments