-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: configure commitlint with commitizen
Add commitlint to ensure correct conventional commits via commit message hook. Configure it based on Angular conventional commits. Configure commitizen to suggest types & scopes interactively. Ignore commits that start with WIP/wip. resolves #7
- Loading branch information
Showing
8 changed files
with
1,475 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
module.exports = { | ||
extends: ['@commitlint/config-angular'], | ||
rules: { | ||
'type-enum': [ | ||
2, | ||
'always', | ||
[ | ||
// Minor | ||
'feat', | ||
// Patch | ||
'build', | ||
'docs', | ||
'fix', | ||
'perf', | ||
'refactor', | ||
// None | ||
'chore', | ||
'ci', | ||
'revert', | ||
'test', | ||
], | ||
], | ||
'scope-empty': [0], | ||
'scope-enum': [ | ||
2, | ||
'always', | ||
// prettier-ignore | ||
[ | ||
'compodoc' | ||
], | ||
], | ||
}, | ||
ignores: [message => message.toLowerCase().startsWith('wip')], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.