@dwp/commitlint-config-base
Advanced tools
Comparing version
{ | ||
"name": "@dwp/commitlint-config-base", | ||
"version": "4.0.8", | ||
"version": "4.0.9", | ||
"author": "Adam Moss", | ||
@@ -45,5 +45,5 @@ "license": "ISC", | ||
"devDependencies": { | ||
"@commitlint/cli": "17.7.2", | ||
"@commitlint/lint": "17.7.0", | ||
"@commitlint/load": "17.7.2", | ||
"@commitlint/cli": "17.8.1", | ||
"@commitlint/lint": "17.8.1", | ||
"@commitlint/load": "17.8.1", | ||
"@dwp/eslint-config-base": "6.1.1", | ||
@@ -54,12 +54,12 @@ "@dwp/eslint-config-jasmine": "1.1.1", | ||
"husky": "8.0.3", | ||
"jasmine": "5.1.0", | ||
"jasmine": "5.6.0", | ||
"jasmine-spec-reporter": "7.0.0", | ||
"lint-staged": "15.4.3", | ||
"lint-staged": "15.5.0", | ||
"nyc": "15.1.0", | ||
"snyk": "1.1295.2" | ||
"snyk": "1.1296.0" | ||
}, | ||
"dependencies": { | ||
"@commitlint/config-conventional": "17.4.4", | ||
"@commitlint/config-conventional": "17.8.1", | ||
"conventional-changelog-conventionalcommits": "6.1.0" | ||
} | ||
} |
@@ -10,3 +10,9 @@ module.exports = { | ||
const serviceAccountRegex = /service_account_(group|project)_\d+_([a-f0-9]+)(@noreply\.dwp\.gitlab-dedicated\.com)/gi; | ||
return signingLines.some((line) => line.match(serviceAccountRegex)); | ||
const serviceAccountCommit = signingLines.some((line) => line.match(serviceAccountRegex)); | ||
if (serviceAccountCommit) { | ||
return true; | ||
} | ||
const engBotRegex = /<engineering-bot@engineering\.digital\.dwp\.gov\.uk>/gi; | ||
return signingLines.some((line) => line.match(engBotRegex)); | ||
}, | ||
@@ -13,0 +19,0 @@ ], |
4777
5.22%23
27.78%+ Added
- Removed
- Removed
- Removed
- Removed