From bf5af7b1951438e807ef5eebed01bc5161b7a866 Mon Sep 17 00:00:00 2001 From: Tim Zhang Date: Wed, 10 Nov 2021 19:30:12 +0800 Subject: [PATCH] action: fix the the body line checker the original regex can not handle pasted error message rightly. this commit will fix this. 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 4d1c57e..2919fd5 100644 --- a/.github/workflows/commit-message-check.yaml +++ b/.github/workflows/commit-message-check.yaml @@ -48,6 +48,6 @@ 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]|^.+\n\S+$' + pattern: '^.+(\n([a-zA-Z].{0,149}|[^a-zA-Z\n].*|Signed-off-by:.*|))+$' error: 'Body line too long (max 72)' post_error: ${{ env.error_msg }}