Skip to content

Commit

Permalink
Merge pull request #3154 from BrunnerLivio/feature/commitlint
Browse files Browse the repository at this point in the history
ci(): Lint commit messages
  • Loading branch information
kamilmysliwiec committed Oct 11, 2019
2 parents 26f54a9 + 649823c commit ee0b242
Show file tree
Hide file tree
Showing 4 changed files with 717 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .circleci/config.yml
Expand Up @@ -86,6 +86,9 @@ jobs:
- run:
name: Lint
command: npm run lint
- run:
name: Lint commit
command: ./node_modules/.bin/commitlint-circle -c .commitlintrc.json

integration_tests:
working_directory: ~/nest
Expand Down
10 changes: 10 additions & 0 deletions .commitlintrc.json
@@ -0,0 +1,10 @@
{
"extends": ["@commitlint/config-angular"],
"rules": {
"subject-case": [
2,
"always",
["sentence-case", "start-case", "pascal-case", "upper-case"]
]
}
}

0 comments on commit ee0b242

Please sign in to comment.