aboutsummaryrefslogtreecommitdiffstats
path: root/bridge/gitlab/import_notes.go
diff options
context:
space:
mode:
authorAmine Hilaly <hilalyamine@gmail.com>2019-07-23 18:40:10 +0200
committerAmine Hilaly <hilalyamine@gmail.com>2019-07-23 18:40:10 +0200
commit0c8f1c3a58c4707284cc6368af26715520a220c0 (patch)
tree332ad69706cf8633bcd2dc246855350830a95ffc /bridge/gitlab/import_notes.go
parent0329bfdf440ec48c5c5c5c6dbe2ca8519d99b706 (diff)
downloadgit-bug-0c8f1c3a58c4707284cc6368af26715520a220c0.tar.gz
bridge/gitlab: fix comment edition target hash in the import
bridge/gitlab: global changes, typo fixes, comments addition
Diffstat (limited to 'bridge/gitlab/import_notes.go')
-rw-r--r--bridge/gitlab/import_notes.go2
1 files changed, 2 insertions, 0 deletions
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
}