File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change 2323 branches :
2424 - main
2525
26+ permissions :
27+ contents : read
28+
2629concurrency :
2730 group : ' ${{ github.workflow }}-${{ github.head_ref || github.ref }}'
2831 cancel-in-progress : true
5255 env :
5356 ENABLE_BPMETADATA : 1
5457
58+ commitlint :
59+ runs-on : ubuntu-latest
60+ steps :
61+ - uses : actions/checkout@v4
62+ with :
63+ fetch-depth : 0
64+ - name : Setup node
65+ uses : actions/setup-node@v4
66+ with :
67+ node-version : lts/*
68+ cache : npm
69+ - name : Install commitlint
70+ run : npm install -D @commitlint/cli @commitlint/config-conventional
71+ - name : Print versions
72+ run : |
73+ git --version
74+ node --version
75+ npm --version
76+ npx commitlint --version
77+
78+ - name : Validate PR commits with commitlint
79+ if : github.event_name == 'pull_request'
80+ run : ${{ github.event.pull_request.title }} | npx commitlint --verbose
You can’t perform that action at this time.
0 commit comments