aboutsummaryrefslogtreecommitdiffstats
path: root/bridge/gitlab/import_notes.go
diff options
context:
space:
mode:
Diffstat (limited to 'bridge/gitlab/import_notes.go')
-rw-r--r--bridge/gitlab/import_notes.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/bridge/gitlab/import_notes.go b/bridge/gitlab/import_notes.go
index 85da3158..c0796037 100644
--- a/bridge/gitlab/import_notes.go
+++ b/bridge/gitlab/import_notes.go
@@ -23,6 +23,8 @@ const (
NOTE_UNASSIGNED
NOTE_CHANGED_MILESTONE
NOTE_REMOVED_MILESTONE
+ NOTE_MENTIONED_IN_ISSUE
+ NOTE_MENTIONED_IN_MERGE_REQUEST
NOTE_UNKNOWN
)
@@ -83,6 +85,14 @@ func GetNoteType(n *gitlab.Note) (NoteType, string) {
return NOTE_REMOVED_MILESTONE, ""
}
+ if strings.HasPrefix(n.Body, "mentioned in issue") {
+ return NOTE_MENTIONED_IN_ISSUE, ""
+ }
+
+ if strings.HasPrefix(n.Body, "mentioned in merge request") {
+ return NOTE_MENTIONED_IN_MERGE_REQUEST, ""
+ }
+
return NOTE_UNKNOWN, ""
}