Skip to content

Commit

Permalink
feat: Making commitlint compatible with dependabot
Browse files Browse the repository at this point in the history
Dependabot commit subjects generate scoped commit types (scoping
type to `deps`).  We want this behavior, and do not want build to
fail on autogenerated dependabot commits due to our rule that prevents
scope in commit type.
The second problem this addresses is increasing max body line to 100
characters, allowing dependabot to generate documentation linking to
security docs for the update
  • Loading branch information
Nermin Dibek committed Feb 8, 2023
1 parent deb1c4b commit c023262
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions base.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@ module.exports = {
parserPreset: 'conventional-changelog-conventionalcommits',
rules: {
'body-leading-blank': [2, 'always'],
'body-max-line-length': [2, 'always', 72],
'body-max-line-length': [2, 'always', 100],
'footer-leading-blank': [2, 'always'],
'footer-max-line-length': [2, 'always', 100],
'header-max-length': [2, 'always', 100],
'references-empty': [1, 'never'],
'scope-empty': [2, 'always'],
'subject-case': [2, 'always', 'sentence-case'],
'subject-empty': [2, 'never'],
'subject-full-stop': [2, 'never', '.'],
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@g2crowd/commitlint-config-g2",
"version": "1.6.0",
"version": "1.7.0",
"description": "G2 commitlint configuration",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
Expand Down

0 comments on commit c023262

Please sign in to comment.