appflowy преди 3 години
родител
ревизия
ef1d10b377
променени са 3 файла, в които са добавени 17 реда и са изтрити 0 реда
  1. 12 0
      .github/workflows/commitlint.yml
  2. 4 0
      .husky/commit-msg
  3. 1 0
      commitlint.config.js

+ 12 - 0
.github/workflows/commitlint.yml

@@ -0,0 +1,12 @@
+name: Lint Commit Messages
+on: [pull_request, push]
+
+jobs:
+  commitlint:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v2
+        with:
+          fetch-depth: 0
+      - uses: wagoid/commitlint-github-action@v4
+

+ 4 - 0
.husky/commit-msg

@@ -0,0 +1,4 @@
+#!/bin/sh
+. "$(dirname "$0")/_/husky.sh"
+
+npx --no -- commitlint --edit 

+ 1 - 0
commitlint.config.js

@@ -0,0 +1 @@
+module.exports = {extends: ['@commitlint/config-conventional']}