From 1e26a76864c8051f08bb44d4ac120391ed32c14d Mon Sep 17 00:00:00 2001 From: Tim Zhang Date: Sat, 21 Dec 2024 00:05:25 +0800 Subject: [PATCH] gh: Increase the maximum word limit for commit message body The original limit 72 was too strict to follow. Signed-off-by: Tim Zhang --- .github/workflows/commit-message-check.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/commit-message-check.yaml b/.github/workflows/commit-message-check.yaml index 304cf77..60ffaa1 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.2 with: commits: ${{ steps.get-pr-commits.outputs.commits }} - pattern: '^.+(\n.{0,72})*$|^.+\n\s*[^a-zA-Z\s\n]|^.+\n\S+$|\nSigned-off-by: dependabot\[bot\]' - error: 'Body line too long (max 72)' + pattern: '^.+(\n.{0,150})*$|^.+\n\s*[^a-zA-Z\s\n]|^.+\n\S+$|\nSigned-off-by: dependabot\[bot\]' + error: 'Body line too long (max 150)' post_error: ${{ env.error_msg }}