mirror of
https://github.com/andatoshiki/toshiki-notebook.git
synced 2026-06-06 06:55:55 +00:00
feat: add extra dep conventional commit for committing changes to additional package installation
This commit is contained in:
parent
650631ba4d
commit
f0f4f255df
@ -2,7 +2,7 @@ import { readFileSync } from 'fs'
|
|||||||
|
|
||||||
const msg: string = readFileSync('.git/COMMIT_EDITMSG', 'utf-8').trim()
|
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)/
|
const mergeRe: RegExp = /^(Merge pull request|Merge branch)/
|
||||||
|
|
||||||
if (!commitRE.test(msg)) {
|
if (!commitRE.test(msg)) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user