From 340373f69fd2a21d2b514fa306f5f57dba342850 Mon Sep 17 00:00:00 2001 From: Hatter Jiang Date: Sun, 12 Jul 2020 00:36:49 +0800 Subject: [PATCH] feat: add format, and add mirror url --- scripts/commit-msg.crs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/commit-msg.crs b/scripts/commit-msg.crs index a873246..f6b52d4 100755 --- a/scripts/commit-msg.crs +++ b/scripts/commit-msg.crs @@ -29,6 +29,9 @@ fn main() { print_ok("Commit message rule matches"); } else { print_info(&format!(r#"Please follow the commit spec: +Format: (): + is optional + feat: add hat wobble ^--^ ^------------^ | | @@ -45,7 +48,8 @@ test : adding missing tests, refactoring tests; no production code change chore : updating grunt tasks etc; no production code change Reference: {}https://gist.github.com/joshbuchea/6f47e86d2510bce28f8e7f42ae84c716{} -"#, UNDER, END)); +or mirror: {}https://hatter.ink/wiki/view_raw.action?__access_token=PUBLIC&id=42{} +"#, UNDER, END, UNDER, END)); exit_with_error_message("Commit message rule is NOT matched"); } }