-
Notifications
You must be signed in to change notification settings - Fork 88
34 lines (31 loc) · 909 Bytes
/
commitlint.yml
File metadata and controls
34 lines (31 loc) · 909 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: "Conventional PR Title"
on:
pull_request:
types: ["opened", "edited", "reopened", "synchronize"]
paths:
- "v4-client-js/**"
- "v4-client-rs/**"
jobs:
conventional-pr-title:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./v4-client-js
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use Node.js 20.8.1
uses: actions/setup-node@v3
with:
node-version: 20.8.1
registry-url: https://registry.npmjs.org
cache: "npm"
cache-dependency-path: "**/package-lock.json"
- name: Install dependencies
run: |
npm install @commitlint/config-conventional
- name: Lint PR Title
run: |
echo "${PR_TITLE}" | npx commitlint --config commitlint.config.js
env:
PR_TITLE: "${{ github.event.pull_request.title }}"