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

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


The following commit(s) were added to refs/heads/main by this push:
     new 2f298bbb chore(ci): add commit message check and fix invalid args in 
check (#876)
2f298bbb is described below

commit 2f298bbb4f3fc3adc72aafc98f3e2efd561a5d63
Author: Jason Yao <[email protected]>
AuthorDate: Fri Feb 27 19:10:10 2026 +0800

    chore(ci): add commit message check and fix invalid args in check (#876)
---
 .github/workflows/ci.yml | 6 ++++++
 .pre-commit-config.yaml  | 3 +--
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 3e58d0b8..cef6f124 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -93,6 +93,12 @@ jobs:
         pre-commit install
         pre-commit run clang-format -a
 
+    - name: Validate commit message format
+      run: |
+        COMMIT_MSG=$(git log -1 --pretty=%B)
+        echo "$COMMIT_MSG" > .git/COMMIT_EDITMSG
+        pre-commit run --hook-stage commit-msg --commit-msg-filename 
.git/COMMIT_EDITMSG 
+
     - name: cpplint
       working-directory: "cpp/build"
       run: |
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index e7c58f54..4e486545 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -64,8 +64,7 @@ repos:
         stages: [commit-msg]
         args:
           - --verbose
-          - --scope-optional
-          - --types
+          - types
           - feat
           - fix
           - docs


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to