API 参考 / @142vip/commit-linter / CommitLinterOptions
定义于: commit-linter/src/commit.interface.ts:94
commitLinter 入参:白名单、待校验首行与自定义 verify。
commitLinter
verify
VipCommitLinterConfig
optional commit?: string
optional
string
定义于: commit-linter/src/commit.interface.ts:103
待校验 commit 首行。 省略时读取当前仓库 .git/COMMIT_EDITMSG 首行(commit-msg 钩子场景)。
.git/COMMIT_EDITMSG
optional scopes?: string[]
定义于: commit-linter/src/commit.interface.ts:98
允许的 scope;与内置默认 scope 合并去重
optional types?: string[]
定义于: commit-linter/src/commit.interface.ts:96
允许的 type;与内置默认 type 合并去重
optional verify?: (gitCommit) => boolean | void
gitCommit
boolean
void
定义于: commit-linter/src/commit.interface.ts:108
额外校验(在格式与白名单通过后执行)。 返回 false 或抛错视为不通过(进程 exit 1)。
false
GitCommitLinter
boolean | void
There was an error while loading. Please reload this page.