You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by zh...@apache.org on 2022/06/28 05:40:06 UTC

[incubator-devlake] branch main updated: ci: fix commit message linter (#2366)

This is an automated email from the ASF dual-hosted git repository.

zhangliang2022 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


The following commit(s) were added to refs/heads/main by this push:
     new 71d1c800 ci: fix commit message linter (#2366)
71d1c800 is described below

commit 71d1c800d07c2240c9d9b4d2eb046234f708706f
Author: Klesh Wong <zh...@merico.dev>
AuthorDate: Tue Jun 28 13:40:02 2022 +0800

    ci: fix commit message linter (#2366)
---
 .github/workflows/commit-msg.yml | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/commit-msg.yml b/.github/workflows/commit-msg.yml
index 015d5a73..1b772bd5 100644
--- a/.github/workflows/commit-msg.yml
+++ b/.github/workflows/commit-msg.yml
@@ -14,4 +14,9 @@ jobs:
         with:
           path: lint-commit-message
           key: ${{ runner.os }}-lint-commit-message
-      - uses: wagoid/commitlint-github-action@v4
+      #- uses: wagoid/commitlint-github-action@v4
+      - name: Lint commit message
+        run: |
+          ! git log --oneline ${{ github.event.pull_request.base.sha }}... \
+            | grep -vP '^\w{8} Merge ' \
+            | grep -vP '^\w{8} (feat|fix|build|chore|docs|style|refactor|perf|test|ci)(\(\w+\))?: \w'