From cd655b35f1eac1a724bb3f4880350f46a015508f Mon Sep 17 00:00:00 2001 From: Axetroy Date: Thu, 7 Oct 2021 21:46:23 +0800 Subject: [PATCH] fix: api --- 3_transformer/transform.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/3_transformer/transform.go b/3_transformer/transform.go index 844325cb..075dc0fc 100644 --- a/3_transformer/transform.go +++ b/3_transformer/transform.go @@ -158,7 +158,7 @@ func Transform(g *client.GitClient, splices []*extractor.ExtractSplice) ([]*Temp } msg := conventionalcommitparser.Parse(commit.Message) - header := msg.GetHeader() + header := msg.ParseHeader() field := msg @@ -169,7 +169,7 @@ func Transform(g *client.GitClient, splices []*extractor.ExtractSplice) ([]*Temp } if field.Footer != nil && len(field.Footer) > 0 { - breakingChangeFooter := field.GetFooterField("BREAKING CHANGE", "BREAKING CHANGES", "BREAKING-CHANGE", "BREAKING-CHANGES") + breakingChangeFooter := field.GetFooterByField("BREAKING CHANGE", "BREAKING CHANGES", "BREAKING-CHANGE", "BREAKING-CHANGES") if breakingChangeFooter != nil { if ctx.BreakingChanges == nil { @@ -187,7 +187,7 @@ func Transform(g *client.GitClient, splices []*extractor.ExtractSplice) ([]*Temp } if header.Type == "revert" { - revertFooter := field.GetFooterField("revert", "Revert") + revertFooter := field.GetFooterByField("revert", "Revert") if revertFooter != nil { revertHash := revertFooter.Content