* 验证Git Commit信息
()
| 5 | * 验证Git Commit信息 |
| 6 | */ |
| 7 | function verifyCommitMain(): void { |
| 8 | const { type, scope, subject, commit } = commitLiner() |
| 9 | |
| 10 | // 提交符合规范,打印相关信息 |
| 11 | VipConsole.log(`type: ${type}, scope: ${scope}, subject: ${subject}`) |
| 12 | vipLogger.logByBlank(`${VipColor.greenBright('Git Commit: ')} ${VipColor.green(commit)}`) |
| 13 | } |
| 14 | |
| 15 | void verifyCommitMain() |