From 637071a84b6dd25df42b8fa79f31bc73d338c55a Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Wed, 11 Jan 2023 13:28:07 +0100 Subject: make go1.19 fmt happy --- bridge/gitlab/event.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'bridge') diff --git a/bridge/gitlab/event.go b/bridge/gitlab/event.go index 80663edd..483af921 100644 --- a/bridge/gitlab/event.go +++ b/bridge/gitlab/event.go @@ -5,8 +5,9 @@ import ( "strings" "time" - "github.com/MichaelMure/git-bug/util/text" "github.com/xanzy/go-gitlab" + + "github.com/MichaelMure/git-bug/util/text" ) // Event represents a unified GitLab event (note, label or state event). @@ -204,9 +205,9 @@ func SortedEvents(inputs ...<-chan Event) chan Event { } // getNewTitle parses body diff given by gitlab api and return it final form -// examples: "changed title from **fourth issue** to **fourth issue{+ changed+}**" -// "changed title from **fourth issue{- changed-}** to **fourth issue**" -// because Gitlab +// examples: +// - "changed title from **fourth issue** to **fourth issue{+ changed+}**" +// - "changed title from **fourth issue{- changed-}** to **fourth issue**" func getNewTitle(diff string) string { newTitle := strings.Split(diff, "** to **")[1] newTitle = strings.Replace(newTitle, "{+", "", -1) -- cgit