feat: add extra dep conventional commit for committing changes to additional package installation

This commit is contained in:
Anda Toshiki 2023-06-12 00:59:29 +08:00
parent 650631ba4d
commit f0f4f255df

View File

@ -2,7 +2,7 @@ import { readFileSync } from 'fs'
const msg: string = readFileSync('.git/COMMIT_EDITMSG', 'utf-8').trim()
const commitRE: RegExp = /^(revert: )?(feat|fix|docs|dx|style|refactor|perf|test|workflow|build|ci|chore|types|wip|release)(\(.+\))?: .{1,50}/
const commitRE: RegExp = /^(revert: )?(feat|fix|docs|dep|dx|style|refactor|perf|test|workflow|build|ci|chore|types|wip|release)(\(.+\))?: .{1,50}/
const mergeRe: RegExp = /^(Merge pull request|Merge branch)/
if (!commitRE.test(msg)) {