Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/actions/lint-pr-title/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ignore-scripts=true
omit-lockfile-registry-resolved=true
8 changes: 8 additions & 0 deletions .github/actions/lint-pr-title/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: lint-pr-title
description: Ensure PR titles match the Conventional Commits Specification (https://www.conventionalcommits.org/).
runs:
using: 'node24'
main: 'src/index.js'
branding:
icon: 'shield'
color: 'green'
24 changes: 24 additions & 0 deletions .github/actions/lint-pr-title/commitlint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
export default {
rules: {
'type-enum': [
2,
'always',
[
'feat',
'fix',
'docs',
'chore',
'build',
'refactor',
'test',
'ci',
'perf',
'revert',
],
],
'type-case': [2, 'always', 'lower-case'],
'type-empty': [2, 'never'],
'subject-empty': [2, 'never'],
'subject-full-stop': [2, 'never', '.'],
},
};
Loading