From d81af48ae50b636889b6a83c8823694f2cc795ae Mon Sep 17 00:00:00 2001 From: Tim Zhang Date: Thu, 13 Aug 2020 18:41:27 +0800 Subject: [PATCH] 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 --- .github/workflows/commit-message-check.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/commit-message-check.yaml b/.github/workflows/commit-message-check.yaml index 08565907b..f5cb79d96 100644 --- a/.github/workflows/commit-message-check.yaml +++ b/.github/workflows/commit-message-check.yaml @@ -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 }}