aboutsummaryrefslogtreecommitdiffstats
path: root/bridge/gitlab
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2023-01-11 13:36:10 +0100
committerGitHub <noreply@github.com>2023-01-11 13:36:10 +0100
commit76100380978418dbfa6fa880f05d335c9a4aafcd (patch)
treec843bf0f26bc9b3d8483895ee0d6d0fc7f568470 /bridge/gitlab
parent5d7a10fbb246d2bbcefe0eabc4403afe22e26124 (diff)
parent637071a84b6dd25df42b8fa79f31bc73d338c55a (diff)
downloadgit-bug-76100380978418dbfa6fa880f05d335c9a4aafcd.tar.gz
Merge pull request #988 from MichaelMure/fix-cache-test
cache: fix tests?
Diffstat (limited to 'bridge/gitlab')
-rw-r--r--bridge/gitlab/event.go9
1 files changed, 5 insertions, 4 deletions
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)