You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/validators/commit.rst
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,7 @@ Commit
11
11
oldest_only: false # Optional, Default is false. Only check the regex against the oldest commit
12
12
newest_only: false # Optional, Default is false. Only check the regex against the newest commit
13
13
single_commit_only: false # Optional, Default is false. only process this validator if there is one commit
14
+
message_type: '' # Optional, only check regex against the field specified. Default is '', which processes the 'message' field. Can also be set to 'author_email' or 'committer_email'
constMESSAGE_NOT_FOUND_ERROR='Failed to run the \'commit\' validator because \'message\' option is not found. Please check README for more information about configuration'
8
8
constREGEX_NOT_FOUND_ERROR='Failed to run the test because \'regex\' is not provided for \'message\' option. Please check README for more information about configuration'
9
9
constDEFAULT_FAIL_MESSAGE='Some or all of your commit messages doesn\'t meet the criteria'
10
+
constDEFAULT_FAIL_AUTHOR_EMAIL_MESSAGE='Some or all of your commit author emails doesn\'t meet the criteria'
11
+
constDEFAULT_FAIL_COMMITTER_EMAIL_MESSAGE='Some or all of your commit committer emails doesn\'t meet the criteria'
10
12
constDEFAULT_SUCCESS_MESSAGE='Your commit messages met the specified criteria'
11
13
12
14
classCommitextendsValidator{
@@ -26,6 +28,7 @@ class Commit extends Validator {
26
28
regex: 'string',
27
29
regex_flag: 'string',
28
30
message: 'string',
31
+
message_type: 'string',
29
32
skip_merge: 'boolean',
30
33
oldest_only: 'boolean',
31
34
newest_only: 'boolean',
@@ -43,6 +46,7 @@ class Commit extends Validator {
0 commit comments