mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-05-09 17:07:33 +00:00
actions: Do not limit the length of single word in commit body
If the line comprises of only a single word, it may be something like a URL (it's certainly very unlikely to be a normal word if the default lengths are being used), so length checks won't be applied to it. Signed-off-by: Tim Zhang <tim@hyper.sh>
This commit is contained in:
parent
8c46a41b96
commit
d81af48ae5
2
.github/workflows/commit-message-check.yaml
vendored
2
.github/workflows/commit-message-check.yaml
vendored
@ -41,7 +41,7 @@ jobs:
|
||||
uses: tim-actions/commit-message-checker-with-regex@v0.3.1
|
||||
with:
|
||||
commits: ${{ steps.get-pr-commits.outputs.commits }}
|
||||
pattern: '^.+(\n.{0,72})*$|^.+\n\s*[^a-zA-Z\s\n]'
|
||||
pattern: '^.+(\n.{0,72})*$|^.+\n\s*[^a-zA-Z\s\n]|^.+\n\S+$'
|
||||
error: 'Body line too long (max 72)'
|
||||
post_error: ${{ env.error_msg }}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user