File tree Expand file tree Collapse file tree 4 files changed +38
-1
lines changed
src/git-hooks/templates/.github/workflows Expand file tree Collapse file tree 4 files changed +38
-1
lines changed Original file line number Diff line number Diff line change @@ -10,10 +10,18 @@ jobs:
10
10
name : Check Coding Style
11
11
runs-on : ubuntu-latest
12
12
steps :
13
- - uses : actions/checkout@v2
13
+ - uses : actions/checkout@v4
14
+ with :
15
+ fetch-depth : 0
14
16
15
17
# Check EditorConfig
16
18
- name : Install eclint
17
19
run : sudo npm install -g eclint
18
20
- name : Check EditorConfig style
19
21
run : eclint check $(git ls-files)
22
+
23
+ # Check Commit Messages
24
+ - name : Install pre-commit
25
+ run : pip install pre-commit
26
+ - name : Check commits
27
+ run : pre-commit run --hook-stage manual
Original file line number Diff line number Diff line change
1
+ [general]
2
+ ignore = body-is-missing
3
+ contrib = contrib-title-conventional-commits
Original file line number Diff line number Diff line change
1
+ default_install_hook_types :
2
+ - pre-commit
3
+ - pre-push
4
+ - commit-msg
5
+
6
+ repos :
7
+ - repo : https://github.com/pre-commit/pre-commit-hooks
8
+ rev : v4.0.1
9
+ hooks :
10
+ - name : Check, that no large files have been committed
11
+ id : check-added-large-files
12
+
13
+ - repo : https://github.com/editorconfig-checker/editorconfig-checker.python
14
+ rev : ' 2.7.1'
15
+ hooks :
16
+ - name : Check EditorConfig
17
+ id : editorconfig-checker
18
+ alias : ec
19
+
20
+ - repo : https://github.com/jorisroovers/gitlint
21
+ rev : " v0.19.1"
22
+ hooks :
23
+ - name : Lint commit messages
24
+ id : gitlint
25
+ - id : gitlint-ci
26
+ args : ['--commits', 'origin/main..HEAD']
File renamed without changes.
You can’t perform that action at this time.
0 commit comments