From 45cbe2b714843ca4bfb678b256b1c9490633c22a Mon Sep 17 00:00:00 2001 From: karantin2020 Date: Tue, 26 Mar 2019 22:37:53 +0500 Subject: [PATCH] version: Update version to v0.3.3 Update app version according to the last changes: - ui (commit type description, template question in body) - commit message rules (wrap body to 72 chars, body limit to 320) - new screen record gif, readme fixes * Version v0.3.3 --- cmd/main.go | 2 +- prompt.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/main.go b/cmd/main.go index 6db3a4e..088cfe9 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -10,7 +10,7 @@ import ( "github.com/karantin2020/gitcomm" ) -const version = "gitcomm 0.3.2" +const version = "gitcomm 0.3.3" func main() { app := cli.App("gitcomm", "Automate git commit messaging\n"+ diff --git a/prompt.go b/prompt.go index b4d209b..c4563ca 100644 --- a/prompt.go +++ b/prompt.go @@ -152,6 +152,7 @@ func PromptConfirm(msg string) bool { func linterSubject(s string) string { // Remove all leading and trailing white spaces s = strings.TrimSpace(s) + // Remove trailing period ... s = strings.TrimSuffix(s, "...") // Then strings.Title the first word in string flds := strings.Fields(s)