We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bd92f5 commit b2679ecCopy full SHA for b2679ec
.github/workflows/commits.yml
@@ -0,0 +1,14 @@
1
+name: Lint Commit Messages
2
+on: [pull_request]
3
+jobs:
4
+ lint:
5
+ runs-on: ubuntu-latest
6
+ steps:
7
+ - uses: actions/checkout@v4
8
+
9
+ - name: Check commit messages
10
+ run: |
11
+ for sha in $(git rev-list origin/main..HEAD); do
12
+ msg=$(git log --format=%B -n 1 $sha)
13
+ echo "$msg" | grep -E "^(feat|fix|docs|chore): .{10,}$" || exit 1
14
+ done
0 commit comments