Skip to content

Commit 97bdd4b

Browse files
sarahetterNetlify
andauthored
chore: add conventional commit PR title linter (#7583)
* chore: add conventional commit PR title linter * chore: clearer job name * chore: different config file format * chore: format --------- Co-authored-by: Netlify <[email protected]>
1 parent f0de4e2 commit 97bdd4b

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

.commitlintrc.json

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: PR Title - Conventional Commit
2+
on:
3+
pull_request:
4+
types: ['opened', 'edited', 'reopened', 'synchronize']
5+
6+
jobs:
7+
lint-title:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
- name: Install Dependencies
12+
run: npm install @commitlint/config-conventional
13+
- uses: JulienKode/[email protected]

commitlint.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export default { extends: ['@commitlint/config-conventional'] }

0 commit comments

Comments
 (0)