We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc967a6 commit 6325b0cCopy full SHA for 6325b0c
.github/workflows/pr-title-linter.yml
@@ -15,7 +15,7 @@ jobs:
15
run: |
16
npm install @commitlint/config-conventional
17
npm install commitlint@latest
18
- echo "module.exports = { extends: ['@commitlint/config-conventional'], rules: { 'references-empty': [2, 'never'] }};" > commitlint.config.js
+ echo "module.exports = { extends: ['@commitlint/config-conventional'], rules: { 'issue-references': [2, 'always'] }, plugins: [{ rules: { 'issue-references': ({type, references}) => [!(type === 'feat' && references.length === 0), 'Feature must contain issue references'] } } ] };" > commitlint.config.js
19
- name: "Lint: Pull request title"
20
env:
21
PR_TITLE: ${{ github.event.pull_request.title }}
0 commit comments