From 0c8f1c3a58c4707284cc6368af26715520a220c0 Mon Sep 17 00:00:00 2001 From: Amine Hilaly Date: Tue, 23 Jul 2019 18:40:10 +0200 Subject: bridge/gitlab: fix comment edition target hash in the import bridge/gitlab: global changes, typo fixes, comments addition --- bridge/gitlab/import_notes.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bridge/gitlab/import_notes.go') diff --git a/bridge/gitlab/import_notes.go b/bridge/gitlab/import_notes.go index a096b14e..06c0a242 100644 --- a/bridge/gitlab/import_notes.go +++ b/bridge/gitlab/import_notes.go @@ -28,6 +28,8 @@ const ( // GetNoteType parse a note system and body and return the note type and it content func GetNoteType(n *gitlab.Note) (NoteType, string) { + // when a note is a comment system is set to false + // when a note is a different event system is set to true if !n.System { return NOTE_COMMENT, n.Body } -- cgit