From 8c46a41b96605f385b64cca20f947becca01bdf3 Mon Sep 17 00:00:00 2001 From: Tim Zhang Date: Thu, 13 Aug 2020 17:04:13 +0800 Subject: [PATCH] actions: Fix subsystem checking in github-action The former regex mistakenly count SoB(DCO) as a valid subsystem. This commit will fix this issue. Fixes: #520 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 e954cd032..08565907b 100644 --- a/.github/workflows/commit-message-check.yaml +++ b/.github/workflows/commit-message-check.yaml @@ -61,6 +61,6 @@ jobs: uses: tim-actions/commit-message-checker-with-regex@v0.3.1 with: commits: ${{ steps.get-pr-commits.outputs.commits }} - pattern: '^[\h]*([^:\h]+)[\h]*:' + pattern: '^[\h]*([^:\h\n]+)[\h]*:' error: 'Failed to find subsystem in subject' post_error: ${{ env.error_msg }}