File tree Expand file tree Collapse file tree 2 files changed +25
-0
lines changed
Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change 6666 - name : Commit linting
6767 if : github.ref != 'refs/heads/master'
6868 uses : wagoid/commitlint-github-action@v5
69+ with :
70+ configFile : commitlint.config.js
6971 - name : GolangCI-Lint
7072 uses : golangci/golangci-lint-action@v8
7173 with :
Original file line number Diff line number Diff line change 1+ name : PR Title Lint
2+
3+ on :
4+ pull_request :
5+ types : [opened, synchronize, reopened, edited]
6+
7+ jobs :
8+ lint-title :
9+ name : Lint PR Title
10+ runs-on : ubuntu-latest
11+ steps :
12+ - name : Checkout
13+ uses : actions/checkout@v4
14+ - name : Setup Node
15+ uses : actions/setup-node@v4
16+ with :
17+ node-version : ' 20'
18+ - name : Install commitlint
19+ run : npm install --save-dev @commitlint/cli @commitlint/config-conventional
20+ - name : PR title linting
21+ env :
22+ PR_TITLE : ${{ github.event.pull_request.title }}
23+ run : echo "$PR_TITLE" | npx commitlint --config ./commitlint.config.js
You can’t perform that action at this time.
0 commit comments