@@ -223,11 +223,11 @@ Body must match a given regex.
223
223
```ini
224
224
# Ensure the body ends with Reviewed-By: <some value>
225
225
[body-match-regex]
226
- regex=Reviewed-By:(.*)$
226
+ regex=Reviewed-By: .+
227
227
228
228
# Ensure body contains the word "Foo" somewhere
229
229
[body-match-regex]
230
- regex=(*.)Foo(.*)
230
+ regex=.*\bFoo\b.*
231
231
```
232
232
233
233
## M1: author-valid-email
@@ -252,7 +252,7 @@ Author email address must be a valid email address.
252
252
```ini
253
253
# Only allow email addresses from a foo.com domain
254
254
[author-valid-email]
255
- regex=[^@]+@foo.com
255
+ regex=[^@]+@foo\ .com$
256
256
```
257
257
258
258
## I1: ignore-by-title
@@ -273,12 +273,12 @@ Ignore a commit based on matching its title.
273
273
# Match commit titles starting with Release
274
274
# For those commits, ignore title-max-length and body-min-length rules
275
275
[ignore-by-title]
276
- regex=^Release(.*)
276
+ regex=^Release.*
277
277
ignore=title-max-length,body-min-length,B6 # (1)
278
278
279
279
# Ignore all rules by setting ignore to 'all'
280
280
[ignore-by-title]
281
- regex=^Release(.*)
281
+ regex=^Release.*
282
282
ignore=all
283
283
```
284
284
@@ -303,12 +303,12 @@ Ignore a commit based on matching its body.
303
303
# Ignore all commits with a commit message body with a line that contains 'release'
304
304
# For matching commits, only ignore rules T1, body-min-length, B6.
305
305
[ignore-by-body]
306
- regex=(.*) release(.*)
306
+ regex=.* release.*
307
307
ignore=T1,body-min-length,B6 # (1)
308
308
309
309
# Ignore all rules by setting ignore to 'all'
310
310
[ignore-by-body]
311
- regex=(.*) release(.*)
311
+ regex=.* release.*
312
312
ignore=all
313
313
```
314
314
@@ -331,15 +331,15 @@ Ignore certain lines in a commit body that match a regex.
331
331
```ini
332
332
# Ignore all lines that start with 'Co-Authored-By'
333
333
[ignore-body-lines]
334
- regex=^Co-Authored-By
334
+ regex=^Co-Authored-By.*
335
335
336
336
# Ignore lines that start with 'Co-Authored-By' or with 'Signed-off-by'
337
337
[ignore-body-lines]
338
- regex=(^ Co-Authored-By)|(^ Signed-off-by)
338
+ regex=^( Co-Authored-By| Signed-off-by).*
339
339
340
340
# Ignore lines that contain 'foobar'
341
341
[ignore-body-lines]
342
- regex=(.*) foobar(.*)
342
+ regex=.* foobar.*
343
343
```
344
344
345
345
## I4: ignore-by-author-name
@@ -365,7 +365,7 @@ Ignore a commit based on matching its author name.
365
365
366
366
# For commits made by authors with "[bot]" in their name, ignore specific rules
367
367
[ignore-by-author-name]
368
- regex=(.*) \[bot\](.*)
368
+ regex=.* \[bot\].*
369
369
ignore=T1,body-min-length,B6 # (1)
370
370
```
371
371
0 commit comments