From 2466ac73bbf88accfb27419213f26c2dd566ac84 Mon Sep 17 00:00:00 2001 From: Tim Zhang Date: Thu, 13 Aug 2020 16:59:07 +0800 Subject: [PATCH] actions: Fix 'Fixes checking' problem by update dependent action The Fixes checking should pass as long as one of the commits of pull-request pass the check. update depdent github-action commit-message-checker-with-regex to v0.3.1 shortlog: d6d9770 commit-message-checker-with-regex: Add input one_pass_all_pass Fixes: #519 Signed-off-by: Tim Zhang --- .github/workflows/commit-message-check.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/commit-message-check.yaml b/.github/workflows/commit-message-check.yaml index f94f722d6a..e954cd0322 100644 --- a/.github/workflows/commit-message-check.yaml +++ b/.github/workflows/commit-message-check.yaml @@ -29,7 +29,7 @@ jobs: commits: ${{ steps.get-pr-commits.outputs.commits }} - name: Check Subject Line Length - uses: tim-actions/commit-message-checker-with-regex@v0.3.0 + uses: tim-actions/commit-message-checker-with-regex@v0.3.1 with: commits: ${{ steps.get-pr-commits.outputs.commits }} pattern: '^.{0,75}(\n.*)*$' @@ -38,7 +38,7 @@ jobs: - name: Check Body Line Length if: ${{ success() || failure() }} - uses: tim-actions/commit-message-checker-with-regex@v0.3.0 + 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]' @@ -47,17 +47,18 @@ jobs: - name: Check Fixes if: ${{ success() || failure() }} - uses: tim-actions/commit-message-checker-with-regex@v0.3.0 + uses: tim-actions/commit-message-checker-with-regex@v0.3.1 with: commits: ${{ steps.get-pr-commits.outputs.commits }} pattern: '\s*Fixes\s*:?\s*(#\d+|github\.com\/kata-containers\/[a-z-.]*#\d+)' flags: 'i' error: 'No "Fixes" found' post_error: ${{ env.error_msg }} + one_pass_all_pass: 'true' - name: Check Subsystem if: ${{ success() || failure() }} - uses: tim-actions/commit-message-checker-with-regex@v0.3.0 + uses: tim-actions/commit-message-checker-with-regex@v0.3.1 with: commits: ${{ steps.get-pr-commits.outputs.commits }} pattern: '^[\h]*([^:\h]+)[\h]*:'