From 0e7438b3a9f8bdd16543632b8bd9ec1745786667 Mon Sep 17 00:00:00 2001 From: Beatriz Vieira Date: Sun, 14 Feb 2021 01:07:07 -0300 Subject: [PATCH] style: add dot om message godocs --- sv/message.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sv/message.go b/sv/message.go index 2588f5d..b34af01 100644 --- a/sv/message.go +++ b/sv/message.go @@ -111,7 +111,7 @@ func (p MessageProcessorImpl) Enhance(branch string, message string) (string, er return footer, nil } -// IssueID try to extract issue id from branch, return empty if not found +// IssueID try to extract issue id from branch, return empty if not found. func (p MessageProcessorImpl) IssueID(branch string) (string, error) { r, err := regexp.Compile(p.branchIssueRegex) if err != nil { @@ -125,7 +125,7 @@ func (p MessageProcessorImpl) IssueID(branch string) (string, error) { return groups[2], nil } -// Format a commit message returning header, body and footer +// Format a commit message returning header, body and footer. func (p MessageProcessorImpl) Format(msg CommitMessage) (string, string, string) { var header strings.Builder header.WriteString(msg.Type) @@ -149,7 +149,7 @@ func (p MessageProcessorImpl) Format(msg CommitMessage) (string, string, string) return header.String(), msg.Body, footer.String() } -// Parse a commit message +// Parse a commit message. func (p MessageProcessorImpl) Parse(subject, body string) CommitMessage { commitType, scope, description, hasBreakingChange := parseSubjectMessage(subject)